From 754a14faf854f35d09405ca1e94bb1ba6dfbeb5a Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Mon, 20 Feb 2017 16:53:00 -0800 Subject: [PATCH] chore(all): fix lint errors --- src/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index f94efb6..bd86fd2 100644 --- a/src/index.js +++ b/src/index.js @@ -39,12 +39,12 @@ let loggers = {}; let appenders = []; let globalDefaultLevel = logLevel.none; -function appendArgs() { +function appendArgs() { return [this, ...arguments]; } function logFactory(level) { - const threshold = logLevel[level]; + const threshold = logLevel[level]; return function() { // In this function, this === logger if (this.level < threshold) { @@ -66,7 +66,7 @@ function connectLoggers() { debug: logFactory('debug'), info: logFactory('info'), warn: logFactory('warn'), - error: logFactory('error'), + error: logFactory('error') }); } @@ -133,7 +133,7 @@ export function addAppender(appender: Appender): void { * @param appender An appender that has been added previously. */ export function removeAppender(appender: Appender): void { - appenders = appenders.filter(a => a !== appender) + appenders = appenders.filter(a => a !== appender); } /**