Remove unnecessary UTF-8 conversion in hash parsing (#11110)

## Summary

I believe this is a no-op?
This commit is contained in:
Charlie Marsh 2025-01-30 13:55:46 -05:00 committed by GitHub
parent d514743b1a
commit ee31e1f11b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 15 deletions

View file

@ -109,10 +109,7 @@ impl SimpleHtml {
debug!("{err}");
Hashes::default()
}
Err(
err
@ (HashError::UnsupportedHashAlgorithm(..) | HashError::NonUtf8(..)),
) => {
Err(err @ HashError::UnsupportedHashAlgorithm(..)) => {
// If the URL references a hash, but it's unsupported, error.
return Err(err.into());
}