Skip to content

Commit

Permalink
style: improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
TabSpace committed Jan 12, 2021
1 parent 97c9d87 commit 0971245
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mods/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ export default abstract class Logger {
this.transport(msg);
}
if (conf.print) {
console.log(...contentArgs);
const method = 'log';
console[method](...contentArgs);
}
}

Expand Down

0 comments on commit 0971245

Please sign in to comment.