aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/parse-log.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-07-30 14:54:31 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-07-31 11:32:04 +0200
commitf0af38e69677d1afe17e48b3f5267128db3db1a4 (patch)
tree98dd8c4ac07e7d77e0c46407e50a5b0f6aaecc43 /scripts/parse-log.ts
parent7abb5c5da1ed7c6945e81b9e3da0a14f623f69ea (diff)
downloadPeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.tar.gz
PeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.tar.zst
PeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.zip
Fix lint
Diffstat (limited to 'scripts/parse-log.ts')
-rwxr-xr-xscripts/parse-log.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts
index 26049b54d..58e052b9f 100755
--- a/scripts/parse-log.ts
+++ b/scripts/parse-log.ts
@@ -79,7 +79,7 @@ function run () {
79 // Don't know why but loggerFormat does not remove splat key 79 // Don't know why but loggerFormat does not remove splat key
80 Object.assign(log, { splat: undefined }) 80 Object.assign(log, { splat: undefined })
81 81
82 logLevels[ log.level ](log) 82 logLevels[log.level](log)
83 }) 83 })
84 84
85 stream.once('close', () => res()) 85 stream.once('close', () => res())
@@ -90,7 +90,7 @@ function run () {
90async function getNewestFile (files: string[], basePath: string) { 90async function getNewestFile (files: string[], basePath: string) {
91 const sorted = await mtimeSortFilesDesc(files, basePath) 91 const sorted = await mtimeSortFilesDesc(files, basePath)
92 92
93 return (sorted.length > 0) ? sorted[ 0 ].file : '' 93 return (sorted.length > 0) ? sorted[0].file : ''
94} 94}
95 95
96function toTimeFormat (time: string) { 96function toTimeFormat (time: string) {