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 de6dca1 commit 4a1fc42Copy full SHA for 4a1fc42
lib/internal/options.js
@@ -6,11 +6,7 @@ const { options, aliases } = getOptions();
6
let warnOnAllowUnauthorized = true;
7
8
function getOptionValue(option) {
9
- const result = options.get(option);
10
- if (!result) {
11
- return undefined;
12
- }
13
- return result.value;
+ return options.get(option)?.value;
14
}
15
16
function getAllowUnauthorized() {
0 commit comments