Skip to content

Commit 843686b

Browse files
Runriotershellscape
authored andcommitted
perf: A nitpick, make it better. (#273)
1 parent 1f1a117 commit 843686b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = function ctx(compiler, options) {
7070

7171
// We are now in invalid state
7272
context.state = false;
73-
if (callback && typeof callback === 'function') {
73+
if (typeof callback === 'function') {
7474
callback();
7575
}
7676
}

0 commit comments

Comments
 (0)