Skip to content

Commit

Permalink
fix(syntax): simplifying ternary and removing redundant assignments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vheissu committed Apr 15, 2016
1 parent c5a61c6 commit caaf7d5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class Configure {
* @returns {boolean}
*/
environmentEnabled() {
return (this.environment === 'default' || this.environment === '' || !this.environment) ? false : true;
return (!(this.environment === 'default' || this.environment === '' || !this.environment));
}

/**
Expand Down Expand Up @@ -259,9 +259,8 @@ export class Configure {
*/
merge(obj) {
let currentConfig = this._config_object;
let merged = deepExtend(currentConfig, obj);

this._config_object = merged;
this._config_object = deepExtend(currentConfig, obj);
}

/**
Expand All @@ -277,9 +276,8 @@ export class Configure {
*/
lazyMerge(obj) {
let currentMergeConfig = (this._config_merge_object || {});
let merged = deepExtend(currentMergeConfig, obj);

this._config_merge_object = merged;
this._config_merge_object = deepExtend(currentMergeConfig, obj);
}

/**
Expand Down

0 comments on commit caaf7d5

Please sign in to comment.