Skip to content

Commit

Permalink
get rid of unnecessary statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Tellis committed Sep 26, 2013
1 parent e03eebb commit 035b7ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions boomerang.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,17 @@ boomr = {

for(k in this.plugins) {
if(this.plugins.hasOwnProperty(k)) {
// config[pugin].enabled has been set to false
// config[plugin].enabled has been set to false
if( config[k]
&& config[k].hasOwnProperty("enabled")
&& config[k].enabled === false
) {
impl.disabled_plugins[k] = 1;
continue;
}
else if(impl.disabled_plugins[k]) {

// plugin was previously disabled but is now enabled
if(impl.disabled_plugins[k]) {
delete impl.disabled_plugins[k];
}

Expand Down

0 comments on commit 035b7ea

Please sign in to comment.