diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-17 15:44:32 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-17 15:47:54 +0200 |
commit | 863477173efa82a4412d2e522aa46462249f9199 (patch) | |
tree | 40f0ae28691780d79acef5ba4dbd2ef0694ce8ff /server/helpers/custom-validators/misc.ts | |
parent | e0faa8ad6e18ce6248ef1ec93a59dab5b05be468 (diff) | |
download | PeerTube-863477173efa82a4412d2e522aa46462249f9199.tar.gz PeerTube-863477173efa82a4412d2e522aa46462249f9199.tar.zst PeerTube-863477173efa82a4412d2e522aa46462249f9199.zip |
Cleanup tests imports
Diffstat (limited to 'server/helpers/custom-validators/misc.ts')
-rw-r--r-- | server/helpers/custom-validators/misc.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/server/helpers/custom-validators/misc.ts b/server/helpers/custom-validators/misc.ts index c80c86193..17750379d 100644 --- a/server/helpers/custom-validators/misc.ts +++ b/server/helpers/custom-validators/misc.ts | |||
@@ -136,12 +136,6 @@ function toValueOrNull (value: string) { | |||
136 | return value | 136 | return value |
137 | } | 137 | } |
138 | 138 | ||
139 | function toArray (value: any) { | ||
140 | if (value && isArray(value) === false) return [ value ] | ||
141 | |||
142 | return value | ||
143 | } | ||
144 | |||
145 | function toIntArray (value: any) { | 139 | function toIntArray (value: any) { |
146 | if (!value) return [] | 140 | if (!value) return [] |
147 | if (isArray(value) === false) return [ validator.toInt(value) ] | 141 | if (isArray(value) === false) return [ validator.toInt(value) ] |
@@ -170,7 +164,6 @@ export { | |||
170 | isBooleanValid, | 164 | isBooleanValid, |
171 | toIntOrNull, | 165 | toIntOrNull, |
172 | areUUIDsValid, | 166 | areUUIDsValid, |
173 | toArray, | ||
174 | toIntArray, | 167 | toIntArray, |
175 | isFileValid, | 168 | isFileValid, |
176 | checkMimetypeRegex | 169 | checkMimetypeRegex |