Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export class ConfigSetCommand implements ICommand {
const convertedValue = this.getConvertedValue(value);
const existingKey = current !== undefined;
const keyDisplay = color.green(key);
const currentDisplay = color.yellow(current);
// when current is undefined, return empty string to avoid throw
const currentDisplay = current ? color.yellow(current) : "";
const updatedDisplay = color.cyan(convertedValue);

this.$logger.info(
Expand Down
Loading