Browse Source

Change to string.Equals comparison

pull/324/head
Ionite 12 months ago
parent
commit
6ccd4bf80c
No known key found for this signature in database
  1. 2
      StabilityMatrix.Core/Helper/ModelFinder.cs

2
StabilityMatrix.Core/Helper/ModelFinder.cs

@ -58,7 +58,7 @@ public class ModelFinder
var file = versionResponse
.Files
.First(file => file.Hashes.BLAKE3?.ToLowerInvariant() == hashBlake3.ToLowerInvariant());
.First(file => hashBlake3.Equals(file.Hashes.BLAKE3, StringComparison.OrdinalIgnoreCase));
return new ModelSearchResult(model, version, file);
}

Loading…
Cancel
Save