Skip to content

Commit a8e3384

Browse files
committed
Fix linting errors
1 parent d131684 commit a8e3384

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lib/utils/log.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
var logObject = {};
44
['log', 'debug', 'warn'].forEach(function (level) {
55
var levelExists;
6-
6+
77
try {
8-
levelExists = global.console && global.console[level] && global.console[level].apply;
9-
} catch(e){}
10-
8+
levelExists = global.console && global.console[level] && global.console[level].apply;
9+
} catch(e) {
10+
// do nothing
11+
}
12+
1113
logObject[level] = levelExists ? function () {
12-
return global.console[level].apply(global.console, arguments);
14+
return global.console[level].apply(global.console, arguments);
1315
} : (level === 'log' ? function () {} : logObject.log);
14-
1516
});
1617

1718
module.exports = logObject;

0 commit comments

Comments
 (0)