Skip to content

Commit

Permalink
Update packages/create-astro/src/logger.ts
Browse files Browse the repository at this point in the history
Make if statement easier to read

Co-authored-by: Evan Boehs <evan@boehs.org>
  • Loading branch information
Mikkel-T and boehs authored Jan 20, 2022
1 parent ce08822 commit d1053fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/create-astro/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ export const defaultLogDestination = new Writable({
objectMode: true,
write(event: LogMessage, _, callback) {
let dest: ConsoleStream = process.stderr;
if (levels[event.level] < levels['error']) {
dest = process.stdout;
}
if (levels[event.level] < levels['error']) dest = process.stdout;

dest.write(dim(dt.format(new Date()) + ' '));

Expand Down

0 comments on commit d1053fd

Please sign in to comment.