Skip to content

Commit

Permalink
fix(config): get global env with extends
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonornela committed Dec 5, 2016
1 parent 12a89b2 commit d22a7f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/providers/config-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,11 @@ export abstract class ConfigBase implements Config {
return this.getResult(result, key, env);
}

// catch env global
if (result[this.env] !== undefined) {
return this.getResult(result, key, this.env);
if (!this.env) {
return result;
}

return result;
return this.getResult(result, key, this.env);
}

protected getResult(result: any, key: string, env: string) {
Expand Down

0 comments on commit d22a7f8

Please sign in to comment.