Format & lint
This commit is contained in:
parent
fefac224b0
commit
7f62273e72
179 changed files with 2210 additions and 1319 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue