diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-12 14:51:17 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-12 16:57:31 +0200 |
commit | c158a5faabb8ef0bc5d121fda4522d63603e8bc5 (patch) | |
tree | ca0a7f25a8806805deeb48f48642ec60696256ce /server/helpers/custom-validators/misc.ts | |
parent | c00100b607ab97dfea690880434657b7ee11466d (diff) | |
download | PeerTube-c158a5faabb8ef0bc5d121fda4522d63603e8bc5.tar.gz PeerTube-c158a5faabb8ef0bc5d121fda4522d63603e8bc5.tar.zst PeerTube-c158a5faabb8ef0bc5d121fda4522d63603e8bc5.zip |
Refactor a little bit controllers
Diffstat (limited to 'server/helpers/custom-validators/misc.ts')
-rw-r--r-- | server/helpers/custom-validators/misc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/misc.ts b/server/helpers/custom-validators/misc.ts index fd3b45804..229e9f03c 100644 --- a/server/helpers/custom-validators/misc.ts +++ b/server/helpers/custom-validators/misc.ts | |||
@@ -14,7 +14,7 @@ function isSafePath (p: string) { | |||
14 | }) | 14 | }) |
15 | } | 15 | } |
16 | 16 | ||
17 | function isArray (value: any) { | 17 | function isArray (value: any): value is any[] { |
18 | return Array.isArray(value) | 18 | return Array.isArray(value) |
19 | } | 19 | } |
20 | 20 | ||