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 27e94e8 commit b09510fCopy full SHA for b09510f
lib/commands/config.ts
@@ -91,7 +91,8 @@ export class ConfigSetCommand implements ICommand {
91
const convertedValue = this.getConvertedValue(value);
92
const existingKey = current !== undefined;
93
const keyDisplay = color.green(key);
94
- const currentDisplay = color.yellow(current);
+ // when current is undefined, return empty string to avoid throw
95
+ const currentDisplay = current ? color.yellow(current) : "";
96
const updatedDisplay = color.cyan(convertedValue);
97
98
this.$logger.info(
0 commit comments