From 49be1638ba33805930bcc6c24de09c1e5d0c1daa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Cruz?= Date: Mon, 3 Jun 2013 16:54:09 +0100 Subject: [PATCH] Minor tweaks. --- lib/core/Project.js | 2 +- lib/renderers/StandardRenderer.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/Project.js b/lib/core/Project.js index 42d06ff3..34b10efb 100644 --- a/lib/core/Project.js +++ b/lib/core/Project.js @@ -265,9 +265,9 @@ Project.prototype.uninstall = function (names, options) { }); } - // Question the user that._logger.conflict('mutual', message, data); + // Question the user return Q.nfcall(promptly.confirm, 'Continue anyway? (y/n)') .then(function (confirmed) { // If the user decided to skip it, remove from the array so that it won't diff --git a/lib/renderers/StandardRenderer.js b/lib/renderers/StandardRenderer.js index 7dd1a540..8d30dc51 100644 --- a/lib/renderers/StandardRenderer.js +++ b/lib/renderers/StandardRenderer.js @@ -41,7 +41,7 @@ StandardRenderer.prototype.error = function (err) { err.id = err.code || 'error'; err.level = 'error'; - str = this._prefixLog(err) + ' ' + err.message + '\n'; + str = this._prefix(err) + ' ' + err.message + '\n'; // Check if additional details were provided if (err.details) { @@ -129,7 +129,7 @@ StandardRenderer.prototype._genericLog = function (log) { stream = process.stdout; } - str = this._prefixLog(log) + ' ' + log.message + '\n'; + str = this._prefix(log) + ' ' + log.message + '\n'; this._write(stream, 'bower ' + str); }; @@ -163,7 +163,7 @@ StandardRenderer.prototype._guessOrigin = function (log) { } }; -StandardRenderer.prototype._prefixLog = function (log) { +StandardRenderer.prototype._prefix = function (log) { var label; var length; var nrSpaces;