From 6951cabdc593e87c128a3c19f44e7e618b95a5a7 Mon Sep 17 00:00:00 2001 From: Pascal Perrenoud Date: Thu, 23 May 2024 09:37:01 +0200 Subject: [PATCH] Using .join dodges issues --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 957ff55..4597669 100644 --- a/index.ts +++ b/index.ts @@ -16,7 +16,7 @@ export class File implements Writer { } public log(_level: Level, ...data: any[]) : void { - for (const block of data) this.sink.write(block) + this.sink.write(data.join(" ")) this.sink.write(os.EOL) }