Skip to content

Commit

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

if (!this.env) {
return result;
let resultExtends = this.getResult(result, key, this.env);

if (resultExtends) {
return resultExtends;
}

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

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

0 comments on commit a1d8e73

Please sign in to comment.