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:
parent
cbea2edecb
commit
b06b305b59
1 changed files with 1 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue