Skip to content

Commit

Permalink
refactor: explicitly check length against 0
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored Sep 4, 2023
1 parent a0ae98d commit 8bf8b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const globalMutableWebpackConfig = () => {
}

const generateWebpackConfig = (extraConfig = {}, ...extraArgs) => {
if (extraArgs.length) {
if (extraArgs.length > 0) {
throw new Error(
'Only one extra config may be passed here - use webpack-merge to merge configs before passing them to Shakapacker'
)
Expand Down

0 comments on commit 8bf8b50

Please sign in to comment.