chore: prettier formatter drift across recent commits

Prettier reformatting on files touched in the wave 11.B sequence —
markdown italics _underscore-style_, single-line conditionals, minor
whitespace fixes. No semantic changes. .env.example reformatting left
unstaged (blocked by pre-commit hook).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-11 10:57:37 +02:00
parent 286eb51f81
commit 5422f11747
10 changed files with 82 additions and 95 deletions

View File

@@ -33,10 +33,7 @@ export const PATCH = withAuth(
if (body.folderId !== null) {
const folder = await db.query.documentFolders.findFirst({
where: and(
eq(documentFolders.id, body.folderId),
eq(documentFolders.portId, ctx.portId),
),
where: and(eq(documentFolders.id, body.folderId), eq(documentFolders.portId, ctx.portId)),
});
if (!folder) throw new ValidationError('Invalid folder');
}

View File

@@ -182,9 +182,7 @@ export function FolderActionsMenu({ selectedFolderId, onAfterDelete }: FolderAct
Cancel
</Button>
<Button
disabled={
!name.trim() || name.trim() === currentName || renameMutation.isPending
}
disabled={!name.trim() || name.trim() === currentName || renameMutation.isPending}
onClick={async () => {
try {
await renameMutation.mutateAsync({

View File

@@ -369,9 +369,7 @@ export class FilesystemBackend implements StorageBackend {
* caller doesn't have to special-case empty trees.
*/
async listByPrefix(prefix: string): Promise<string[]> {
const startAbs = prefix
? this.resolveKey(prefix.replace(/\/+$/, ''))
: this.rootResolved;
const startAbs = prefix ? this.resolveKey(prefix.replace(/\/+$/, '')) : this.rootResolved;
const out: string[] = [];
async function walk(dir: string): Promise<void> {
@@ -393,9 +391,7 @@ export class FilesystemBackend implements StorageBackend {
}
await walk(startAbs);
return out
.map((abs) => path.relative(this.rootResolved, abs).split(path.sep).join('/'))
.sort();
return out.map((abs) => path.relative(this.rootResolved, abs).split(path.sep).join('/')).sort();
}
/** Used by the proxy route — returns the validated absolute path. */