The staging area is empty and the working tree is clean — there are **no staged changes to commit**. All changes from the last commit (8150c5a) are already committed. If you want to amend that commit or make new changes, you'll need to stage some files first.
This commit is contained in:
@@ -286,8 +286,10 @@ export async function computeImagePhash(
|
||||
): Promise<string | null> {
|
||||
try {
|
||||
// Dynamic import to avoid issues if imghash native bindings aren't available
|
||||
const imghash = await import("imghash");
|
||||
const hash = await imghash.hash(buffer);
|
||||
const imghashModule = await import("imghash");
|
||||
const hashFn = imghashModule.default?.hash ?? imghashModule.hash;
|
||||
if (typeof hashFn !== "function") return null;
|
||||
const hash = await hashFn(buffer);
|
||||
return hash;
|
||||
} catch {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user