From 6ccd4bf80cc40ff9ca143247d3c6155ef206b97f Mon Sep 17 00:00:00 2001 From: Ionite Date: Sat, 2 Dec 2023 14:49:17 -0500 Subject: [PATCH] Change to string.Equals comparison --- StabilityMatrix.Core/Helper/ModelFinder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StabilityMatrix.Core/Helper/ModelFinder.cs b/StabilityMatrix.Core/Helper/ModelFinder.cs index e18e27e9..f1640821 100644 --- a/StabilityMatrix.Core/Helper/ModelFinder.cs +++ b/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); }