Browse Source

Removing leading space if time is not requested

bodicsek 5 năm trước cách đây
mục cha
commit
acca33ab5e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      clv.ts

+ 1 - 1
clv.ts

@@ -46,7 +46,7 @@ for (const filename of options._ as string[]) {
         }
       } else {
         await Deno.stdout.write(
-          encoder.encode(`${options.time ? parsedLine.time.toISOString() : ""} ${parsedLine.log}`),
+          encoder.encode(`${options.time ? parsedLine.time.toISOString() + " " : ""}${parsedLine.log}`),
         );
       }
     }