Misc. JSHint-suggested cleanups in BasicLogger
This commit is contained in:
parent
682bfc6536
commit
9bbc7faf5e
|
@ -1,5 +1,5 @@
|
|||
// The BasicLogger pushes stuff to console.log. Nothing more, nothing less.
|
||||
var BasicLogger = module.exports = function BasicLogger() {}
|
||||
var BasicLogger = module.exports = function BasicLogger() {};
|
||||
|
||||
BasicLogger.prototype.toString = function() {
|
||||
return "BasicLogger";
|
||||
|
@ -10,10 +10,10 @@ var getArgs = function(args) {
|
|||
};
|
||||
|
||||
var logString = function(type) {
|
||||
var upcase = new String(type).toUpperCase(),
|
||||
var upcase = String(type).toUpperCase(),
|
||||
time = new Date().toISOString();
|
||||
|
||||
var padded = new String(" " + upcase).slice(-5);
|
||||
var padded = String(" " + upcase).slice(-5);
|
||||
|
||||
return upcase[0] + ", [" + time + "] " + padded + " -- :";
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue