diff --git a/src/index.ts b/src/index.ts index 10f6898..1e7861f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -71,12 +71,12 @@ export default class cout { } if (this.save) { string.split("\n").forEach((line) => { - log(`${this.emoji ? emoji : ""}[${time} ${type}] | ${line}`); + log(`${this.emoji && emoji}[${time} ${type}] | ${line}`); }) } stringc.split("\n").forEach((line) => { - console.log(`${this.emoji ? emojic : ""}[${timec} ${typec}] | ${line}`); + console.log(`${this.emoji && emojic}[${timec} ${typec}] | ${line}`); }) }