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 a3e7457 commit 0186e14Copy full SHA for 0186e14
json-to-go.js
@@ -532,11 +532,13 @@ if (typeof module != 'undefined') {
532
}
533
534
const argument = val.replace(/-/g, '')
535
- if (argument === "big")
536
- console.warn(`Warning: The argument '${argument}' has been deprecated and has no effect anymore`)
537
- else {
538
- console.error(`Unexpected argument ${val} received`)
539
- process.exit(1)
+ switch (argument) {
+ case "big":
+ console.warn(`Warning: The argument '${argument}' has been deprecated and has no effect anymore`)
+ break
+ default:
540
+ console.error(`Unexpected argument ${val} received`)
541
+ process.exit(1)
542
543
})
544
0 commit comments