mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Fix lint
This commit is contained in:
parent
7abb5c5da1
commit
f0af38e696
6 changed files with 135 additions and 130 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue