]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/parse-log.ts
Fix lint
[github/Chocobozzz/PeerTube.git] / scripts / parse-log.ts
index 26049b54d993e9f24753ed26bfc9e7dbe1ec8d95..58e052b9f6c3ec364358e4fca62176a03e34e090 100755 (executable)
@@ -79,7 +79,7 @@ function run () {
       // Don't know why but loggerFormat does not remove splat key
       Object.assign(log, { splat: undefined })
 
-      logLevels[ log.level ](log)
+      logLevels[log.level](log)
     })
 
     stream.once('close', () => res())
@@ -90,7 +90,7 @@ function run () {
 async function getNewestFile (files: string[], basePath: string) {
   const sorted = await mtimeSortFilesDesc(files, basePath)
 
-  return (sorted.length > 0) ? sorted[ 0 ].file : ''
+  return (sorted.length > 0) ? sorted[0].file : ''
 }
 
 function toTimeFormat (time: string) {