From b06b305b598f73964374fb8800252fa1faa539f0 Mon Sep 17 00:00:00 2001 From: Shreynik Date: Sat, 2 Nov 2019 15:48:37 +0530 Subject: [PATCH] refactor: removes ts ignore comments (#1541) --- src/lib/config-utils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/config-utils.ts b/src/lib/config-utils.ts index d0b5bfe55..56d0c12f5 100644 --- a/src/lib/config-utils.ts +++ b/src/lib/config-utils.ts @@ -25,7 +25,7 @@ const BLACKLIST = { * @return {Array} */ export function normalizeUserList(oldFormat: any, newFormat: any): any { - const result = []; + const result: any[][] = []; /* eslint prefer-rest-params: "off" */ for (let i = 0; i < arguments.length; i++) { @@ -35,10 +35,8 @@ export function normalizeUserList(oldFormat: any, newFormat: any): any { // if it's a string, split it to array if (_.isString(arguments[i])) { - // @ts-ignore result.push(arguments[i].split(/\s+/)); } else if (Array.isArray(arguments[i])) { - // @ts-ignore result.push(arguments[i]); } else { throw ErrorCode.getInternalError(