Format & lint

This commit is contained in:
Andras Schmelczer 2026-04-25 17:55:46 +01:00
parent fefac224b0
commit 7f62273e72
179 changed files with 2210 additions and 1319 deletions

View file

@ -1,4 +1,8 @@
import type { DocumentRecord, DocumentWithPath, RelativePath } from "../sync-operations/types";
import type {
DocumentRecord,
DocumentWithPath,
RelativePath
} from "../sync-operations/types";
import { EMPTY_HASH } from "./hash";
// TODO: make this smarter so that offline files can be renamed & edited at the same time
@ -6,7 +10,7 @@ export async function findMatchingFile(
contentHash: string,
candidates: { path: RelativePath; record: DocumentRecord }[]
): Promise<DocumentWithPath | undefined> {
if (contentHash === await EMPTY_HASH) {
if (contentHash === (await EMPTY_HASH)) {
return undefined;
}