We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55ea1f2 commit 832021cCopy full SHA for 832021c
json-to-go.js
@@ -533,11 +533,13 @@ if (typeof module != 'undefined') {
533
}
534
535
const argument = val.replace(/-/g, '')
536
- if (argument === "big")
537
- console.warn(`Warning: The argument '${argument}' has been deprecated and has no effect anymore`)
538
- else {
539
- console.error(`Unexpected argument ${val} received`)
540
- process.exit(1)
+ switch (argument) {
+ case "big":
+ console.warn(`Warning: The argument '${argument}' has been deprecated and has no effect anymore`)
+ break
+ default:
541
+ console.error(`Unexpected argument ${val} received`)
542
+ process.exit(1)
543
544
})
545
0 commit comments