Misc. JSHint-suggested cleanups in BasicLogger

This commit is contained in:
Andrew Stewart 2014-06-10 18:50:08 -07:00
parent 682bfc6536
commit 9bbc7faf5e
1 changed files with 3 additions and 3 deletions

View File

@ -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 + " -- :";
};