Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed padding. Closes #10

  • Loading branch information...
commit f6054dc886ebf2372e92d28735abe42f4c5b1d7c 1 parent 52747b5
@tj tj authored
Showing with 1 addition and 14 deletions.
  1. +1 −14 lib/debug.js
View
15 lib/debug.js
@@ -70,19 +70,6 @@ function color() {
}
/**
- * Pad the given `str` to `len`.
- *
- * @param {String} str
- * @param {String} len
- * @return {String}
- * @api private
- */
-
-function pad(str, len) {
- return Array(Math.max(len, 1)).join(' ') + str;
-}
-
-/**
* Create a debugger with the given `name`.
*
* @param {String} name
@@ -106,7 +93,7 @@ function debug(name) {
fmt = ' \033[9' + c + 'm' + name + ' '
+ '\033[3' + c + 'm\033[90m'
+ fmt + '\033[3' + c + 'm'
- + ' ' + pad(ms, 40 - fmt.length) + 'ms\033[0m';
+ + ' +' + ms + 'ms\033[0m';
console.error.apply(this, arguments);
}
Please sign in to comment.
Something went wrong with that request. Please try again.