Skip to content

Commit f77cac4

Browse files
DanielRufcraigtaub
authored andcommitted
fix: do not redeclare variable (#3956)
1 parent 6201e42 commit f77cac4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/example/Array.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Array', function(){
1313
var arr = [];
1414
var n = arr.push('foo');
1515
expect(n).to.equal(1);
16-
var n = arr.push('bar');
16+
n = arr.push('bar');
1717
expect(n).to.equal(2);
1818
})
1919

@@ -39,7 +39,7 @@ describe('Array', function(){
3939
var arr = [];
4040
var n = arr.unshift('foo');
4141
expect(n).to.equal(1);
42-
var n = arr.unshift('bar');
42+
n = arr.unshift('bar');
4343
expect(n).to.equal(2);
4444
})
4545

@@ -70,4 +70,5 @@ describe('Array', function(){
7070
expect(arr).to.have.length(1);
7171
})
7272
})
73-
})
73+
})
74+

0 commit comments

Comments
 (0)