Skip to content

Commit 8474718

Browse files
committed
Revert "Correctly return 200 in api/flaky-tests/disable (#6184)"
This reverts commit b972178.
1 parent b972178 commit 8474718

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

torchci/pages/api/flaky-tests/disable.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ export default async function handler(
2929
if (authorization === process.env.FLAKY_TEST_BOT_KEY) {
3030
await disableFlakyTestsAndReenableNonFlakyTests();
3131
res.status(200).end();
32-
} else {
33-
res.status(403).end();
3432
}
33+
res.status(403).end();
3534
}
3635

3736
async function disableFlakyTestsAndReenableNonFlakyTests() {

0 commit comments

Comments
 (0)