Skip to content

Commit 1c210c2

Browse files
committed
Fix quotes and silence linting errors
1 parent d097ee3 commit 1c210c2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ function getOpts(input, optdef = null, config = {}){
694694
// Prepare an error object to be thrown in the user's direction
695695
switch(typeof noUndefined){
696696
case "function": error = error(arg); break;
697-
case "boolean": error = `Unknown option: "%s"`; // Fall-through
697+
case "boolean": error = 'Unknown option: "%s"'; // Fall-through
698698
case "string": error = new TypeError(error.replace("%s", arg));
699699
}
700700
throw error;

test/undefined-options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ suite("Undefined options", () => {
5454
], {"--bar": ""}, {
5555
noUndefined: arg =>
5656
new ReferenceError(`Can't find switch named "${arg.replace(/^-+/, "")}"`),
57-
}), ReferenceError, `Can't find switch named "unknown"`);
57+
}), ReferenceError, "Can't find switch named `unknown`");
5858
});
5959

6060

0 commit comments

Comments
 (0)