Skip to content
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

fix: Safely guard nil unwrap for dictionary lookup in Swift #79

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Aug 28, 2024

map[key] could return a nil, so we force-unwrap it (!) since we know it's not nil.

cc @gtokman

@mrousavy mrousavy merged commit fd85cf5 into main Aug 28, 2024
2 checks passed
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.

1 participant