소스 검색

Removing leading space if time is not requested

bodicsek 5 년 전
부모
커밋
acca33ab5e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}`),
         );
       }
     }