Skip to content

Commit 9edd34d

Browse files
authored
Fix lint from #1421 (#1437)
Linter tests passed in #1421, but then they fail with `Forbidden non-null assertion` on `main` after merging new PRs.
1 parent d1e57d8 commit 9edd34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tasks/src/gguf.ts

Lines changed: 1 addition & 1 deletion
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)