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

Remove un-needed edge case sort condition in languages helper #31724

Conversation

mjankowski
Copy link
Contributor

As noted in #31701 (comment)

This is only ever called from sorted_locale_keys, which itself is only ever called with values from our language lists. There's also a rake task which runs on CI designed to detect missing values for that.

The original PR does not have an explanation or test for why these are here ... I'm guessing it's excessive defensiveness that can be safely removed.

@ClearlyClaire ClearlyClaire added this pull request to the merge queue Sep 3, 2024
Merged via the queue into mastodon:main with commit c9641c8 Sep 3, 2024
29 checks passed
@mjankowski mjankowski deleted the language-helper-edge-case-no-no-no-we-dont-need-that-now-because-it-should-never-happen branch September 3, 2024 13:58
justinwritescode pushed a commit to justinwritescode/mastodon that referenced this pull request Sep 15, 2024
nileane pushed a commit to nileane/mastodon that referenced this pull request Sep 17, 2024
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