Skip to content
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.

Commit

Permalink
Address Code Climate issues in lib/logger.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Bland committed Jan 26, 2016
1 parent 3306fe1 commit 7ae33e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

'use strict';

var scriptName = require('../package.json').name;

module.exports = Logger;

function Logger(logger) {
this.logger = logger;
}

Logger.PREFIX = require('../package.json').name + ':';
Logger.PREFIX = scriptName + ':';

Logger.prototype.info = function() {
this.logger.info.apply(this.logger, addPrefix.apply(null, arguments));
Expand All @@ -22,7 +24,7 @@ function addPrefix() {
var args = new Array(arguments.length),
i;

for (i = 0; i != args.length; ++i) {
for (i = 0; i !== args.length; ++i) {
args[i] = arguments[i];
}

Expand Down

0 comments on commit 7ae33e4

Please sign in to comment.