Skip to content

Commit 0cbd641

Browse files
authored
Fix linting in @huggingface/inference (remove unused vars) (#1348)
Fixes failing lint CI: ``` packages/inference lint:check: /home/runner/work/huggingface.js/huggingface.js/packages/inference/src/tasks/nlp/tokenClassification.ts packages/inference lint:check: 5:10 error 'toArray' is defined but never used @typescript-eslint/no-unused-vars packages/inference lint:check: /home/runner/work/huggingface.js/huggingface.js/packages/inference/src/tasks/nlp/zeroShotClassification.ts packages/inference lint:check: 5:10 error 'toArray' is defined but never used @typescript-eslint/no-unused-vars packages/inference lint:check: ✖ 2 problems (2 errors, 0 warnings) packages/inference lint:check: Failed ``` From #1315 (cc @hanouticelina for viz). Strange that in that PR, the CI didn't catch it (the last [commit](21f9d34) was marked as ✅). May need to investigate (cc @coyotte508)
1 parent 1a63901 commit 0cbd641

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

packages/inference/src/tasks/nlp/tokenClassification.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { TokenClassificationInput, TokenClassificationOutput } from "@huggi
22
import { getProviderHelper } from "../../lib/getProviderHelper";
33
import type { BaseArgs, Options } from "../../types";
44
import { innerRequest } from "../../utils/request";
5-
import { toArray } from "../../utils/toArray";
65

76
export type TokenClassificationArgs = BaseArgs & TokenClassificationInput;
87

packages/inference/src/tasks/nlp/zeroShotClassification.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { ZeroShotClassificationInput, ZeroShotClassificationOutput } from "
22
import { getProviderHelper } from "../../lib/getProviderHelper";
33
import type { BaseArgs, Options } from "../../types";
44
import { innerRequest } from "../../utils/request";
5-
import { toArray } from "../../utils/toArray";
65

76
export type ZeroShotClassificationArgs = BaseArgs & ZeroShotClassificationInput;
87

0 commit comments

Comments
 (0)