chore: add prettier formatting
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m56s
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m56s
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
export function isImgwNoProductsResponse(value: unknown) {
|
||||
if (!value || typeof value !== "object") return false;
|
||||
const response = value as { status?: unknown; message?: unknown };
|
||||
return response.status === false
|
||||
&& typeof response.message === "string"
|
||||
&& response.message.toLocaleLowerCase("en-US").includes("no products were found");
|
||||
return (
|
||||
response.status === false &&
|
||||
typeof response.message === "string" &&
|
||||
response.message.toLocaleLowerCase("en-US").includes("no products were found")
|
||||
);
|
||||
}
|
||||
|
||||
export async function readImgwResponseBody(response: Response) {
|
||||
|
||||
Reference in New Issue
Block a user