Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxin committed Mar 13, 2018
1 parent afc9680 commit 7daa5f4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/**
* Module dependencies.
*/
Expand Down Expand Up @@ -35,16 +36,16 @@ const colorCodes = {

function dev (opts) {
// print to console helper.
var print = (function () {
var transporter
const print = (function () {
let transporter
if (typeof opts === 'function') {
transporter = opts
} else if (!!opts && !!opts.transporter) {
} else if (opts && opts.transporter) {
transporter = opts.transporter
}

return function printFunc (...args) {
var str = util.format(...args)
let str = util.format(...args)
if (transporter) {
transporter(str, args)
} else {
Expand Down

0 comments on commit 7daa5f4

Please sign in to comment.