Skip to content

Commit 2428b14

Browse files
author
chuckd
committed
Fix linter error
1 parent 1b37115 commit 2428b14

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/dependencies/AMDDefineDependencyParserPlugin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,11 @@ class AMDDefineDependencyParserPlugin {
260260
parser.inScope(fnParams, () => {
261261
parser.scope.renames = fnRenames;
262262
parser.scope.inTry = inTry;
263-
if (fn.body.type === "BlockStatement")
263+
if (fn.body.type === "BlockStatement") {
264264
parser.walkStatement(fn.body);
265-
else parser.walkExpression(fn.body);
265+
} else {
266+
parser.walkExpression(fn.body);
267+
}
266268
});
267269
} else if (fn && isBoundFunctionExpression(fn)) {
268270
inTry = parser.scope.inTry;

0 commit comments

Comments
 (0)