Skip to content

Commit 8e25c8c

Browse files
committed
Optimize
1 parent ceefa45 commit 8e25c8c

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

lib/logger.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,19 @@ module.exports.callbacks = {
133133
logUrls(bs.options.get("urls").toJS());
134134
}
135135

136-
if (type === "snippet" && bs.options.get("logSnippet")) {
136+
if (type === "snippet") {
137137

138-
logger.info(
139-
"{bold:Copy the following snippet into your website, " +
140-
"just before the closing {cyan:</body>} tag"
141-
);
138+
if (bs.options.get("logSnippet")) {
142139

143-
logger.unprefixed("info",
144-
messages.scriptTags(bs.options)
145-
);
146-
}
140+
logger.info(
141+
"{bold:Copy the following snippet into your website, " +
142+
"just before the closing {cyan:</body>} tag"
143+
);
147144

148-
if (type === "snippet") {
145+
logger.unprefixed("info",
146+
messages.scriptTags(bs.options)
147+
);
148+
}
149149

150150
logUrls(bs.options.get("urls").filter(function (value, key) {
151151
return key.slice(0, 2) === "ui";

0 commit comments

Comments
 (0)