Skip to content

Fix lint from #1421 #1437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025
Merged

Fix lint from #1421 #1437

merged 1 commit into from
May 7, 2025

Conversation

pcuenca
Copy link
Member

@pcuenca pcuenca commented May 7, 2025

Linter tests passed in #1421, but then they fail with Forbidden non-null assertion on main after merging new PRs.

@@ -137,7 +137,7 @@ export function findNearestQuantType(
// This means finding the largest quantization that is smaller than or equal to the target.
for (const availableQuant of sortedAvailable) {
// We know the key exists due to the filter above.
const availableIndex = orderMap.get(availableQuant)!;
const availableIndex = orderMap.get(availableQuant) ?? 0;
Copy link
Member Author

@pcuenca pcuenca May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose it doesn't matter what number we put here, but there could be a more idiomatic way cc @ngxson

@coyotte508 coyotte508 merged commit 9edd34d into main May 7, 2025
3 of 5 checks passed
@coyotte508 coyotte508 deleted the fix-lint-1421 branch May 7, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants