From 8e25c8cedaff85b624fb9dc4611ed4b217713051 Mon Sep 17 00:00:00 2001 From: Glen Date: Thu, 12 May 2016 11:17:45 +0200 Subject: [PATCH] Optimize --- lib/logger.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/logger.js b/lib/logger.js index 4ec456c2f..d6c75835f 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -133,19 +133,19 @@ module.exports.callbacks = { logUrls(bs.options.get("urls").toJS()); } - if (type === "snippet" && bs.options.get("logSnippet")) { + if (type === "snippet") { - logger.info( - "{bold:Copy the following snippet into your website, " + - "just before the closing {cyan:} tag" - ); + if (bs.options.get("logSnippet")) { - logger.unprefixed("info", - messages.scriptTags(bs.options) - ); - } + logger.info( + "{bold:Copy the following snippet into your website, " + + "just before the closing {cyan:} tag" + ); - if (type === "snippet") { + logger.unprefixed("info", + messages.scriptTags(bs.options) + ); + } logUrls(bs.options.get("urls").filter(function (value, key) { return key.slice(0, 2) === "ui";