Skip to content

Commit 192fc36

Browse files
committed
Fix code style
1 parent 1fe79f4 commit 192fc36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JavaScript/a-deferred.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class Deferred {
2525
}
2626

2727
done(fn) {
28-
if (this.finished) return;
28+
if (this.finished) return false;
2929
const event = this.events['done'];
3030
if (event) event.push(fn);
3131
else this.events['done'] = [fn];
3232
return this;
3333
}
3434

3535
fail(fn) {
36-
if (this.finished) return;
36+
if (this.finished) return false;
3737
const event = this.events['fail'];
3838
if (event) event.push(fn);
3939
else this.events['fail'] = [fn];

0 commit comments

Comments
 (0)