Skip to content

Commit c72360e

Browse files
committed
fix linting
1 parent cde854b commit c72360e

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

test/tests/revwalk.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,27 @@ describe("Revwalk", function() {
6262
// node rather than npm, with a la `node --expose-gc [pathtohmoca] [testglob]`
6363
var testGC = (global.gc ? it : it.skip);
6464

65-
testGC("doesnt segfault when accessing commit.author() twice", function(done) {
66-
this.timeout(10000);
67-
return Repository.open(reposPath).then(function(repository) {
68-
var walker = repository.createRevWalk();
69-
repository.getMaster().then(function(master) {
70-
var did = false;
71-
walker.walk(master, function(error, commit) {
72-
for (var i = 0; i < 1000; i++) {
73-
if (true) {
74-
commit.author().name();
75-
commit.author().email();
65+
testGC("doesnt segfault when accessing .author() twice", function(done) {
66+
this.timeout(10000);
67+
return Repository.open(reposPath).then(function(repository) {
68+
var walker = repository.createRevWalk();
69+
repository.getMaster().then(function(master) {
70+
var did = false;
71+
walker.walk(master, function(error, commit) {
72+
for (var i = 0; i < 1000; i++) {
73+
if (true) {
74+
commit.author().name();
75+
commit.author().email();
76+
}
77+
global.gc();
78+
}
79+
if (!did) {
80+
done();
81+
did = true;
7682
}
77-
global.gc();
78-
}
79-
if (!did) {
80-
done();
81-
did = true;
82-
}
83+
});
8384
});
8485
});
8586
});
86-
});
8787

8888
});

0 commit comments

Comments
 (0)