refactor: removes ts ignore comments (#1541)

This commit is contained in:
Shreynik 2019-11-02 15:48:37 +05:30 committed by Juan Picado @jotadeveloper
parent cbea2edecb
commit b06b305b59
1 changed files with 1 additions and 3 deletions

View File

@ -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(