Skip to content

Commit bef056f

Browse files
committed
chore: remove default unreached case
1 parent 05a3a7c commit bef056f

File tree

1 file changed

+0
-5
lines changed
  • extensions/firestore-huggingface-inference-api/functions/src

1 file changed

+0
-5
lines changed

extensions/firestore-huggingface-inference-api/functions/src/inference.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,5 @@ export async function runInference(
9696
case TaskId.featureExtraction: {
9797
return await tasks.featureExtraction(snapshot, inference);
9898
}
99-
100-
default: {
101-
snapshot.ref.update({ error: 'Invalid task' });
102-
throw new Error('Invalid task');
103-
}
10499
}
105100
}

0 commit comments

Comments
 (0)