Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Aug 24, 2024
1 parent 40459e1 commit 800fd72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ipList/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const ipListEx = makeValidator((input: string) => {

try {
return items.map((s) => ipaddr.process(s.trim()));
} catch (e) {
} catch {
throw new EnvError(`Invalid IP list input: "${input}"`);
}
});
2 changes: 2 additions & 0 deletions test/unit/ipList.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable sonarjs/no-nested-functions */
/* eslint-disable sonarjs/no-hardcoded-ip */
import { EnvError } from 'envalid';
import ipaddr from 'ipaddr.js';
import { ipList, ipListEx } from '../../lib';
Expand Down
1 change: 1 addition & 0 deletions test/unit/iso31661Alpha2.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable sonarjs/no-nested-functions */
import { EnvError } from 'envalid';
import { iso31661Alpha2, iso31661Alpha2List } from '../../lib';

Expand Down

0 comments on commit 800fd72

Please sign in to comment.