Skip to content

Commit 110b70a

Browse files
committed
fix: removing unused catch (e)
1 parent 3ab0072 commit 110b70a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/nodes/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ function parseSeedNodes(data: any): [SeedNodes, boolean] {
511511
? seedNodeString
512512
: `pk://${seedNodeString}`;
513513
seedNodeUrl = new URL(seedNodeStringProtocol);
514-
} catch (e) {
514+
} catch {
515515
throw new validationErrors.ErrorParse(
516516
'Seed nodes must be of format `nodeId@host:port;...`',
517517
);

src/sessions/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function verifySessionToken(
4545
const expiry = parsedToken.payload.exp;
4646
if (expiry != null && expiry < Math.round(Date.now() / 1000)) return;
4747
return parsedToken.payload;
48-
} catch (e) {
48+
} catch {
4949
return;
5050
}
5151
}

src/utils/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function fromMultibase(s: string): Buffer | undefined {
2525
let data: Uint8Array;
2626
try {
2727
data = codec.decode(s);
28-
} catch (e) {
28+
} catch {
2929
return;
3030
}
3131
return bufferWrap(data);

0 commit comments

Comments
 (0)