Skip to content

Commit

Permalink
Run linter (#975)
Browse files Browse the repository at this point in the history
* npm run format:all

* add eslint `alphabetize`

* Revert "add eslint `alphabetize`"

This reverts commit 68c6c5a.
  • Loading branch information
mishig25 authored Sep 28, 2023
1 parent 23a02aa commit 257b0f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions js/src/lib/components/InferenceWidget/shared/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ export async function getModelLoadInfo(
const output = await response.json();
if (response.ok && typeof output === "object" && output.loaded !== undefined) {
// eslint-disable-next-line @typescript-eslint/naming-convention
const {state, compute_type} = output;
return {compute_type, state};
const { state, compute_type } = output;
return { compute_type, state };
} else {
console.warn(response.status, output.error);
return {state: "error" };
return { state: "error" };
}
}

Expand Down
1 change: 0 additions & 1 deletion js/src/lib/components/InferenceWidget/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export interface WidgetProps {
isLoggedIn?: boolean;
}


export type LoadState = "Loadable" | "Loaded" | "TooBig" | "error";

export type ComputeType = "cpu" | "gpu";
Expand Down

0 comments on commit 257b0f2

Please sign in to comment.