Fix logical error
This commit is contained in:
parent
9c61927c1b
commit
67ad7d8fef
1 changed files with 2 additions and 2 deletions
|
|
@ -5,9 +5,9 @@ export function findMatchingFileBasedOnHash(
|
|||
contentHash: string,
|
||||
candidates: [RelativePath, DocumentMetadata][]
|
||||
): [RelativePath, DocumentMetadata] | undefined {
|
||||
if (contentHash != EMPTY_HASH) {
|
||||
if (contentHash === EMPTY_HASH) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return candidates.find(([_, document]) => document.hash === contentHash);
|
||||
return candidates.find(([_, metadata]) => metadata.hash === contentHash);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue