Skip to content

Commit 04a78d5

Browse files
committed
fix lint
1 parent 871a994 commit 04a78d5

File tree

1 file changed

+4
-1
lines changed
  • packages/tasks/src/snippets

1 file changed

+4
-1
lines changed

packages/tasks/src/snippets/js.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,10 @@ export const jsSnippets: Partial<
332332
"image-segmentation": snippetFile,
333333
};
334334

335-
export function getJsInferenceSnippet(model: ModelDataMinimal, accessToken: string): InferenceSnippet {
335+
export function getJsInferenceSnippet(
336+
model: ModelDataMinimal,
337+
accessToken: string
338+
): InferenceSnippet | InferenceSnippet[] {
336339
return model.pipeline_tag && model.pipeline_tag in jsSnippets
337340
? jsSnippets[model.pipeline_tag]?.(model, accessToken) ?? { content: "" }
338341
: { content: "" };

0 commit comments

Comments
 (0)