Skip to content

Commit 431f0ec

Browse files
committed
Making function braces consistent
1 parent 656fd24 commit 431f0ec

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

koans/AboutFunctions.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ describe("About Functions", function() {
4040

4141
it("should use lexical scoping to synthesise functions", function () {
4242

43-
function makeIncreaseByFunction(increaseByAmount)
44-
{
45-
var increaseByFunction = function increaseBy(numberToIncrease)
46-
{
43+
function makeIncreaseByFunction(increaseByAmount) {
44+
var increaseByFunction = function increaseBy(numberToIncrease) {
4745
return numberToIncrease + increaseByAmount;
4846
};
4947
return increaseByFunction;
@@ -57,22 +55,19 @@ describe("About Functions", function() {
5755

5856
it("should allow extra function arguments", function () {
5957

60-
function returnFirstArg(firstArg)
61-
{
58+
function returnFirstArg(firstArg) {
6259
return firstArg;
6360
}
6461

6562
expect(returnFirstArg("first", "second", "third")).toBe(FILL_ME_IN);
6663

67-
function returnSecondArg(firstArg, secondArg)
68-
{
64+
function returnSecondArg(firstArg, secondArg) {
6965
return secondArg;
7066
}
7167

7268
expect(returnSecondArg("only give first arg")).toBe(FILL_ME_IN);
7369

74-
function returnAllArgs()
75-
{
70+
function returnAllArgs() {
7671
var argsArray = [];
7772
for (var i = 0; i < arguments.length; i += 1) {
7873
argsArray.push(arguments[i]);

0 commit comments

Comments
 (0)