Explorar el Código

Removing leading space if time is not requested

bodicsek hace 5 años
padre
commit
acca33ab5e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}`),
         );
       }
     }