Skip to content

Commit

Permalink
Do not store resolutions if --save is not used, fixes #2344
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Mar 28, 2018
1 parent add6017 commit 9eaa7e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/core/Manager.js
Expand Up @@ -826,7 +826,9 @@ Manager.prototype._electSuitable = function (name, semvers, nonSemvers) {
});

// Save resolution
this._storeResolution(picks[suitable]);
if (this._config.argv.cooked.includes('--save')) {
this._storeResolution(picks[suitable]);
}

return Q.resolve(picks[suitable]);
}
Expand Down

0 comments on commit 9eaa7e8

Please sign in to comment.