chore: reject redundant standalone blocks (#4675)

## Summary

Enable the rule that rejects unnecessary standalone blocks.

The existing empty branches are removed so future control flow remains
purposeful.

Base: [#4674](https://github.com/triggerdotdev/trigger.dev/pull/4674)
This commit is contained in:
Chris Arderne
2026-08-19 08:28:58 +01:00
committed by GitHub
parent b2afff252c
commit 8572e8edbf
3 changed files with 2 additions and 5 deletions
+1
View File
@@ -57,6 +57,7 @@
"react/jsx-no-target-blank": "error",
"react/jsx-fragments": "error",
"react/self-closing-comp": "error",
"no-lone-blocks": "error",
"trigger/no-thrown-unawaited-redirect": "error",
"trigger-prisma/no-unbounded-list-filter": "error",
"trigger-prisma/no-unbounded-list-filter-in-args-helper": "error"
@@ -55,7 +55,6 @@ export async function printInitialBanner(performUpdateCheck = true, profile?: st
Run \`npm install --save-dev trigger.dev@${newMajor}\` to update to the latest version.
After installation, run Trigger.dev with \`npx trigger.dev\`.`
);
} else {
}
} else {
$spinner.stop("On latest version");
+1 -4
View File
@@ -1,5 +1,5 @@
import { z } from "zod";
import { fromZodError, ValidationError } from "zod-validation-error";
import { fromZodError } from "zod-validation-error";
import type { RetryOptions } from "../schemas/index.js";
import { calculateNextRetryDelay } from "../utils/retries.js";
import { ApiConnectionError, ApiError, ApiSchemaValidationError } from "./errors.js";
@@ -274,9 +274,6 @@ async function _doZodFetchWithRetries<TResponseBodySchema extends z.ZodTypeAny>(
throw error;
}
if (error instanceof ValidationError) {
}
if (options?.retry) {
const retry = { ...defaultRetryOptions, ...options.retry };