0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

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

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(