Skip to content

Commit

Permalink
Do not store resolutions if --save is not used, fixes #2344 (#2508)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Mar 28, 2018
1 parent d6a18ae commit 451c60e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/core/Manager.js
Expand Up @@ -825,7 +825,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 451c60e

Please sign in to comment.