Skip to content

Commit 21b8c86

Browse files
committed
Fix lint from #1421
1 parent d1e57d8 commit 21b8c86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tasks/src/gguf.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export function findNearestQuantType(
137137
// This means finding the largest quantization that is smaller than or equal to the target.
138138
for (const availableQuant of sortedAvailable) {
139139
// We know the key exists due to the filter above.
140-
const availableIndex = orderMap.get(availableQuant)!;
140+
const availableIndex = orderMap.get(availableQuant) ?? 0;
141141
if (availableIndex >= targetIndex) {
142142
return availableQuant;
143143
}

0 commit comments

Comments
 (0)