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

Codebase quality: Use helper method for checking .lnk and .url extensions #10772

Merged
merged 4 commits into from
Dec 19, 2022

Conversation

gave92
Copy link
Member

@gave92 gave92 commented Dec 19, 2022

Resolved / Related Issues
Items resolved / related issues by this PR.

  • No issue, only code quality

Created helper method to check if a file path is a shortcut or url file instead of having checks for the extension in 20 places. Also makes sure to use OrdinalIgnoreCase instead of Ordinal.

Validation
How did you test these changes?

  • Built and ran the app

@yaira2 yaira2 changed the title Codebase quality: use helper method for checking .lnk and .url extensions Codebase quality: Use helper method for checking .lnk and .url extensions Dec 19, 2022
@gave92 gave92 marked this pull request as ready for review December 19, 2022 20:09
Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

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

LGTM

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Dec 19, 2022
@yaira2 yaira2 merged commit 9ab8690 into files-community:main Dec 19, 2022
@gave92 gave92 deleted the file_ext_lnk branch December 19, 2022 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants