Skip to content

Commit c12d3ee

Browse files
clydinhansl
authored andcommitted
refactor(@angular/cli): correct implicit returns
1 parent 6cfb72a commit c12d3ee

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/angular/cli/commands/config-impl.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ export class ConfigCommand extends Command<ConfigCommandSchema> {
223223
} else {
224224
this.logger.info(value.toString());
225225
}
226+
227+
return 0;
226228
}
227229

228230
private set(options: ConfigCommandSchema) {
@@ -264,6 +266,8 @@ export class ConfigCommand extends Command<ConfigCommandSchema> {
264266

265267
const output = JSON.stringify(configValue, null, 2);
266268
writeFileSync(configPath, output);
269+
270+
return 0;
267271
}
268272

269273
}

packages/angular/cli/models/command-runner.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ export async function runCommand(
7777
const content = readFileSync(join(__dirname, '..', uri.substr('ng-cli://'.length)), 'utf-8');
7878

7979
return of(JSON.parse(content));
80+
} else {
81+
return null;
8082
}
8183
});
8284

0 commit comments

Comments
 (0)