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 0f50468 commit 68b6963Copy full SHA for 68b6963
json-to-go-v2.js
@@ -518,11 +518,13 @@ if (typeof module === 'undefined' || !module.parent) {
518
}
519
520
const argument = val.replace(/-/g, '')
521
- if (argument === "big")
522
- console.warn(`Warning: The argument '${argument}' has been deprecated and has no effect anymore`)
523
- else {
524
- console.error(`Unexpected argument ${val} received`)
525
- process.exit(1)
+ switch (argument) {
+ case "big":
+ console.warn(`Warning: The argument '${argument}' has been deprecated and has no effect anymore`)
+ break
+ default:
526
+ console.error(`Unexpected argument ${val} received`)
527
+ process.exit(1)
528
529
})
530
0 commit comments