From 863477173efa82a4412d2e522aa46462249f9199 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Aug 2022 15:44:32 +0200 Subject: Cleanup tests imports --- server/helpers/custom-validators/misc.ts | 7 ------- 1 file changed, 7 deletions(-) (limited to 'server/helpers/custom-validators') 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) { return value } -function toArray (value: any) { - if (value && isArray(value) === false) return [ value ] - - return value -} - function toIntArray (value: any) { if (!value) return [] if (isArray(value) === false) return [ validator.toInt(value) ] @@ -170,7 +164,6 @@ export { isBooleanValid, toIntOrNull, areUUIDsValid, - toArray, toIntArray, isFileValid, checkMimetypeRegex -- cgit v1.2.3