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

refactor(biome_fs): make BiomePath::extension_as_str not panic #2838

Conversation

dyc3
Copy link
Contributor

@dyc3 dyc3 commented May 13, 2024

Summary

There's no reason to let this particular function panic. I encountered this behavior when working on #2823.

Test Plan

It compiles, and tests pass.

@github-actions github-actions bot added A-CLI Area: CLI A-Core Area: core labels May 13, 2024
@dyc3 dyc3 marked this pull request as draft May 13, 2024 11:57
@dyc3 dyc3 force-pushed the 05-13-refactor_biome_fs_make_biomepath_extension_as_str_not_panic branch from d6b55c6 to 99f9df9 Compare May 13, 2024 12:06
@dyc3 dyc3 marked this pull request as ready for review May 13, 2024 12:06
@Conaclos Conaclos merged commit 4afd801 into biomejs:main May 13, 2024
10 checks passed
@Conaclos
Copy link
Member

Thanks!

@dyc3 dyc3 deleted the 05-13-refactor_biome_fs_make_biomepath_extension_as_str_not_panic branch May 13, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: CLI A-Core Area: core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants