Skip to content

Commit a356f6b

Browse files
committed
Fix review comments
1 parent eba768b commit a356f6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/env-vars.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ module.exports = class EnvVarsCommand extends CLICommandBase {
144144
};
145145

146146
_buildEnvVarOperation({ key, value, operation }) {
147-
const validOperations = ['Set', 'Unset', 'Inherit', 'Uninherit'];
147+
const validOperations = ['Set', 'Unset'];
148148
if (!validOperations.includes(operation)) {
149149
throw Error('Invalid operation for patch ' + operation);
150150
}
@@ -218,7 +218,7 @@ module.exports = class EnvVarsCommand extends CLICommandBase {
218218
this.ui.write(this.ui.chalk.cyan.bold('Changes to be applied:'));
219219
changes.forEach(change => {
220220
if (change.op === 'Added') {
221-
this.ui.write(` ${this.ui.chalk.green('+')} ${change.key}: ${change.value}`);
221+
this.ui.write(` ${this.ui.chalk.green('+')} ${change.key}: ${change.after}`);
222222
} else if (change.op === 'Removed') {
223223
this.ui.write(` ${this.ui.chalk.red('-')} ${change.key}`);
224224
} else if (change.op === 'Changed') {

0 commit comments

Comments
 (0)