Skip to content

Commit

Permalink
chore: use suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh3112 committed Sep 4, 2021
1 parent 2f53013 commit 397e6e5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/webpack-cli/lib/webpack-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,7 @@ class WebpackCLI {
result = result.default;
}

// Treat undefined configuration for zero-config
if (!result) {
result = {};
}

return result;
return result || {};
}

loadJSONFile(pathToFile, handleError = true) {
Expand Down

0 comments on commit 397e6e5

Please sign in to comment.