mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Fix server lint
This commit is contained in:
parent
4638cd713d
commit
99b757488c
19 changed files with 28 additions and 22 deletions
|
@ -86,7 +86,7 @@ function isFileValid (options: {
|
|||
|
||||
// The file exists
|
||||
const file = fileArray[0]
|
||||
if (!file || !file.originalname) return false
|
||||
if (!file?.originalname) return false
|
||||
|
||||
// Check size
|
||||
if ((maxSize !== null) && file.size > maxSize) return false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue