Skip to content

Commit

Permalink
Merge 973a427 into a6308bf
Browse files Browse the repository at this point in the history
  • Loading branch information
xiemaisi committed Nov 2, 2017
2 parents a6308bf + 973a427 commit cd5b91e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion lib/commands/lookup.js
Expand Up @@ -16,7 +16,7 @@ function lookup(logger, name, config) {
.then(function (entry) {
return !entry ? null : {
name: name,
url: entry && entry.url
url: entry.url
};
});
}
Expand Down
2 changes: 0 additions & 2 deletions lib/core/Manager.js
Expand Up @@ -687,7 +687,6 @@ Manager.prototype._electSuitable = function (name, semvers, nonSemvers) {
var unresolvable;
var dataPicks;
var save;
var choices;
var picks = [];
var versionRegex = /(?:[\d\w]\.){2}[\d\w](?:.)*/;
var picksReleases;
Expand Down Expand Up @@ -845,7 +844,6 @@ Manager.prototype._electSuitable = function (name, semvers, nonSemvers) {
picks: dataPicks
});

choices = picks.map(function (pick, index) { return index + 1; });
picksReleases = picks.map(function (pick) { return pick.pkgMeta._release; });
return Q.nfcall(this._logger.prompt.bind(this._logger), {
type: 'input',
Expand Down
2 changes: 0 additions & 2 deletions lib/core/resolvers/GitResolver.js
Expand Up @@ -121,8 +121,6 @@ GitResolver.prototype._findResolution = function (target) {
version,
index;

versionsArr = versions.map(function (obj) { return obj.version; });

// If there are no tags and target is *,
// fallback to the latest commit on master
if (!versions.length && target === '*') {
Expand Down

0 comments on commit cd5b91e

Please sign in to comment.