Skip to content

Commit 9f2e8ff

Browse files
committed
try-catch
1 parent 7b8e7d3 commit 9f2e8ff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/angular/patch-vitest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function wrapTestInZone(testBody: string | any[] | undefined) {
8585
enumerable: false,
8686
});
8787
wrappedFunc.length = testBody.length;
88-
} catch (e) {
88+
} catch {
8989
return testBody.length === 0
9090
? () => testProxyZone.run(testBody, null)
9191
: (done: any) => testProxyZone.run(testBody, null, [done]);

packages/core/src/utils/cookie.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function parseCookie(str: string): Record<string, string> {
6666

6767
try {
6868
obj[key] = val.indexOf('%') !== -1 ? decodeURIComponent(val) : val;
69-
} catch (e) {
69+
} catch {
7070
obj[key] = val;
7171
}
7272
}

packages/core/src/utils/envelope.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function serializeEnvelope(envelope: Envelope): string | Uint8Array {
112112
let stringifiedPayload: string;
113113
try {
114114
stringifiedPayload = JSON.stringify(payload);
115-
} catch (e) {
115+
} catch {
116116
// In case, despite all our efforts to keep `payload` circular-dependency-free, `JSON.stringify()` still
117117
// fails, we try again after normalizing it again with infinite normalization depth. This of course has a
118118
// performance impact but in this case a performance hit is better than throwing.

0 commit comments

Comments
 (0)