Skip to content

Commit

Permalink
fix: don't return this when calling log functions
Browse files Browse the repository at this point in the history
That causes repl envrionments printing Consola innstance
  • Loading branch information
pi0 committed Oct 10, 2018
1 parent 1a63be8 commit f07e056
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/consola.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ export default class Consola {
delete logObj.scope
}

// Log
return this._log(logObj)
this._log(logObj)
}

// Bind function to instance of Consola
Expand All @@ -87,7 +86,6 @@ export default class Consola {
for (const reporter of this.reporters) {
reporter.log(logObj)
}
return this
}

_deprecated (what, alter) {
Expand Down

0 comments on commit f07e056

Please sign in to comment.