mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
refactor(@angular/cli): correct implicit returns
This commit is contained in:
parent
6cfb72acc2
commit
c12d3ee329
@ -223,6 +223,8 @@ export class ConfigCommand extends Command<ConfigCommandSchema> {
|
|||||||
} else {
|
} else {
|
||||||
this.logger.info(value.toString());
|
this.logger.info(value.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private set(options: ConfigCommandSchema) {
|
private set(options: ConfigCommandSchema) {
|
||||||
@ -264,6 +266,8 @@ export class ConfigCommand extends Command<ConfigCommandSchema> {
|
|||||||
|
|
||||||
const output = JSON.stringify(configValue, null, 2);
|
const output = JSON.stringify(configValue, null, 2);
|
||||||
writeFileSync(configPath, output);
|
writeFileSync(configPath, output);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,8 @@ export async function runCommand(
|
|||||||
const content = readFileSync(join(__dirname, '..', uri.substr('ng-cli://'.length)), 'utf-8');
|
const content = readFileSync(join(__dirname, '..', uri.substr('ng-cli://'.length)), 'utf-8');
|
||||||
|
|
||||||
return of(JSON.parse(content));
|
return of(JSON.parse(content));
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user