Skip to content

Commit

Permalink
perf(config): checkExtends not call get()
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonornela committed Dec 5, 2016
1 parent 0115b81 commit 12a89b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/config-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export abstract class ConfigBase implements Config {
throw new Error('To extends value should be object');
}
let envExtend = env.substr(env.indexOf(':') + 1);
let data = this.get(key, envExtend);
let data = this.data[key][envExtend];
if (typeof data !== 'object' || data === null) {
throw new Error(`The env '${envExtend}' should be object`);
}
Expand Down

0 comments on commit 12a89b2

Please sign in to comment.