summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/update-notifier/node_modules/boxen/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/update-notifier/node_modules/boxen/index.js')
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/boxen/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/deps/npm/node_modules/update-notifier/node_modules/boxen/index.js b/deps/npm/node_modules/update-notifier/node_modules/boxen/index.js
index 95d81d5616..2233e3d7b0 100644
--- a/deps/npm/node_modules/update-notifier/node_modules/boxen/index.js
+++ b/deps/npm/node_modules/update-notifier/node_modules/boxen/index.js
@@ -118,8 +118,7 @@ module.exports = (text, opts) => {
const padWidth = (columns - contentWidth) / 2;
marginLeft = PAD.repeat(padWidth);
} else if (opts.float === 'right') {
- let padWidth = Math.max(columns - contentWidth - 2, 0);
- padWidth = padWidth < 0 ? 0 : padWidth;
+ const padWidth = Math.max(columns - contentWidth - 2, 0);
marginLeft = PAD.repeat(padWidth);
}