[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-02-17 08:28:50 +00:00
committed by GitHub
parent 8aba7b08cf
commit 46e1bed5e9
2 changed files with 4 additions and 13 deletions

View File

@@ -84,7 +84,7 @@ export const ShowPatches = ({ id, type }: Props) => {
return (
<Card className="bg-background">
<CardHeader className="flex flex-row items-center justify-between">
<CardHeader className="flex flex-row items-center justify-between">
<div>
<CardTitle>Patches</CardTitle>
<CardDescription>
@@ -185,8 +185,7 @@ export const ShowPatches = ({ id, type }: Props) => {
</TableCell>
<TableCell>
<div className="flex items-center gap-1">
{(patch.type === "update" ||
patch.type === "create") && (
{(patch.type === "update" || patch.type === "create") && (
<EditPatchDialog
patchId={patch.patchId}
entityId={id}

View File

@@ -232,11 +232,7 @@ export const patchRouter = createTRPCRouter({
// For delete patches, show current file content from repo (what will be deleted)
if (existingPatch?.type === "delete") {
try {
return await readPatchRepoFile(
input.id,
input.type,
input.filePath,
);
return await readPatchRepoFile(input.id, input.type, input.filePath);
} catch {
return "(File not found in repo - will be removed if it exists)";
}
@@ -342,11 +338,7 @@ export const patchRouter = createTRPCRouter({
}
}
return await markPatchForDeletion(
input.filePath,
input.id,
input.type,
);
return await markPatchForDeletion(input.filePath, input.id, input.type);
}),
// Cleanup