Skip to content

Commit

Permalink
fix(@angular/cli): Prevent re-reading config file if project & global…
Browse files Browse the repository at this point in the history
… are the same

Addresses #4207
  • Loading branch information
Brocco authored and hansl committed Jul 14, 2017
1 parent 6ad27c5 commit f735760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@angular/cli/models/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class CliConfig extends CliConfigBase<ConfigInterface> {
const projectConfig = CliConfig.fromProject();
if (projectConfig) {
value = projectConfig.get(jsonPath);
} else {
} else if (CliConfig.globalConfigFilePath() !== CliConfig.configFilePath()) {
const globalConfig = CliConfig.fromGlobal();
if (globalConfig) {
value = globalConfig.get(jsonPath);
Expand Down

0 comments on commit f735760

Please sign in to comment.