-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Code quality
Copy link
Description
Description
Those same fixes should be applied to HashesViewModel.CalculateFileHashAsync and the ChecksumHelpers methods.
Additionally, in HashesViewModel.CalculateFileHashAsync, we should open and close the stream on the background thread we're using to hash it.
Concerned code
- src\Files.App\ViewModels\Properties\HashesViewModel.cs
- src\Files.Shared\Helpers\ChecksumHelpers.cs
Gains
- Better readability.
- Consistency.
- Better performance (event though virtually unnoticeable).
Requirements
- Use
MD5.HashDatamethod inHashesViewModel.CalculateFileHashAsync. - Use
Convert.ToHexStringLower.
Comments
I have a PR, I'll take the liberty of sending it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🏗 In progress