Skip to content

Commit ed472cf

Browse files
committed
chore: reject redundant standalone blocks
1 parent 28b11fc commit ed472cf

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

.oxlintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"react/jsx-no-target-blank": "error",
5858
"react/jsx-fragments": "error",
5959
"react/self-closing-comp": "error",
60+
"no-lone-blocks": "error",
6061
"trigger/no-thrown-unawaited-redirect": "error",
6162
"trigger-prisma/no-unbounded-list-filter": "error",
6263
"trigger-prisma/no-unbounded-list-filter-in-args-helper": "error"

packages/cli-v3/src/utilities/initialBanner.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export async function printInitialBanner(performUpdateCheck = true, profile?: st
5555
Run \`npm install --save-dev trigger.dev@${newMajor}\` to update to the latest version.
5656
After installation, run Trigger.dev with \`npx trigger.dev\`.`
5757
);
58-
} else {
5958
}
6059
} else {
6160
$spinner.stop("On latest version");

packages/core/src/v3/apiClient/core.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { z } from "zod";
2-
import { fromZodError, ValidationError } from "zod-validation-error";
2+
import { fromZodError } from "zod-validation-error";
33
import type { RetryOptions } from "../schemas/index.js";
44
import { calculateNextRetryDelay } from "../utils/retries.js";
55
import { ApiConnectionError, ApiError, ApiSchemaValidationError } from "./errors.js";
@@ -274,9 +274,6 @@ async function _doZodFetchWithRetries<TResponseBodySchema extends z.ZodTypeAny>(
274274
throw error;
275275
}
276276

277-
if (error instanceof ValidationError) {
278-
}
279-
280277
if (options?.retry) {
281278
const retry = { ...defaultRetryOptions, ...options.retry };
282279

0 commit comments

Comments
 (0)