Skip to content

Commit 7b8e7d3

Browse files
committed
more try-catch
1 parent 04ab435 commit 7b8e7d3

File tree

54 files changed

+72
-72
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+72
-72
lines changed

dev-packages/browser-integration-tests/suites/feedback/attachTo/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sentryTest('should capture feedback with custom button', async ({ getLocalTestUr
1717

1818
try {
1919
return getEnvelopeType(req) === 'feedback';
20-
} catch (err) {
20+
} catch {
2121
return false;
2222
}
2323
});

dev-packages/browser-integration-tests/suites/feedback/captureFeedback/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sentryTest('should capture feedback', async ({ getLocalTestUrl, page }) => {
1717

1818
try {
1919
return getEnvelopeType(req) === 'feedback';
20-
} catch (err) {
20+
} catch {
2121
return false;
2222
}
2323
});

dev-packages/browser-integration-tests/suites/feedback/captureFeedbackAndReplay/hasSampling/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sentryTest('should capture feedback', async ({ forceFlushReplay, getLocalTestUrl
2525

2626
try {
2727
return getEnvelopeType(req) === 'feedback';
28-
} catch (err) {
28+
} catch {
2929
return false;
3030
}
3131
});

dev-packages/browser-integration-tests/suites/feedback/captureFeedbackCsp/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sentryTest('should capture feedback', async ({ getLocalTestUrl, page }) => {
1717

1818
try {
1919
return getEnvelopeType(req) === 'feedback';
20-
} catch (err) {
20+
} catch {
2121
return false;
2222
}
2323
});

dev-packages/e2e-tests/test-applications/nextjs-13/pages/crashed-session-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function CrashedPage() {
66
// @ts-expect-error
77
window.onerror(null, null, null, null, new Error('Crashed'));
88
}
9-
} catch (_e) {
9+
} catch {
1010
// no-empty
1111
}
1212
return <h1>Crashed</h1>;

dev-packages/e2e-tests/test-applications/nextjs-app-dir/assert-build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const getLatestNextVersion = async () => {
1313
const response = await fetch('https://registry.npmjs.org/next/latest');
1414
const data = await response.json();
1515
return data.version as string;
16-
} catch (error) {
16+
} catch {
1717
return '0.0.0';
1818
}
1919
};

dev-packages/node-core-integration-tests/scripts/clean.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ for (const path of paths) {
1313
// eslint-disable-next-line no-console
1414
console.log(`docker compose down @ ${path}`);
1515
execSync('docker compose down --volumes', { stdio: 'inherit', cwd: path });
16-
} catch (_) {
16+
} catch {
1717
//
1818
}
1919
}

dev-packages/node-core-integration-tests/utils/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ export function createRunner(...paths: string[]) {
497497
try {
498498
const envelope = JSON.parse(cleanedLine) as Envelope;
499499
newEnvelope(envelope);
500-
} catch (_) {
500+
} catch {
501501
//
502502
}
503503
}

dev-packages/node-integration-tests/scripts/clean.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ for (const path of paths) {
1313
// eslint-disable-next-line no-console
1414
console.log(`docker compose down @ ${path}`);
1515
execSync('docker compose down --volumes', { stdio: 'inherit', cwd: path });
16-
} catch (_) {
16+
} catch {
1717
//
1818
}
1919
}

dev-packages/node-integration-tests/utils/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ export function createRunner(...paths: string[]) {
506506
try {
507507
const envelope = JSON.parse(cleanedLine) as Envelope;
508508
newEnvelope(envelope);
509-
} catch (_) {
509+
} catch {
510510
//
511511
}
512512
}

0 commit comments

Comments
 (0)