Skip to content

Commit 16f533a

Browse files
author
benholloway
committed
minor tweak to console width variable
1 parent c931463 commit 16f533a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/build/browserify.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,10 @@ function printMessages(messages) {
341341
if (messages.length > 0) {
342342

343343
// push the buffer to stdout in a single block
344-
var width = Number(80) || 0;
345-
var hr = new Array(width + 1); // this is a good trick to repeat a character N times
346-
var start = (width > 0) ? (hr.join('\u25BC') + '\n') : '';
347-
var stop = (width > 0) ? (hr.join('\u25B2') + '\n') : '';
344+
var WIDTH = 80;
345+
var hr = new Array(WIDTH + 1); // this is a good trick to repeat a character N times
346+
var start = (WIDTH > 0) ? (hr.join('\u25BC') + '\n') : '';
347+
var stop = (WIDTH > 0) ? (hr.join('\u25B2') + '\n') : '';
348348
var message = messages
349349
.map(groupByFilename)
350350
.join('');

0 commit comments

Comments
 (0)