refactor(@angular/cli): correct implicit returns

This commit is contained in:
Charles Lyding 2018-09-18 20:39:35 -04:00 committed by Hans
parent 6cfb72acc2
commit c12d3ee329
2 changed files with 6 additions and 0 deletions

View File

@ -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;
} }
} }

View File

@ -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;
} }
}); });