From b12d221fbfdbab627ac31fef24f756e9e7e979e7 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 4 Mar 2024 22:18:14 -0500 Subject: [PATCH] Fix equality from missing return statement --- SabreTools.Core/DictionaryBaseExtensions.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/SabreTools.Core/DictionaryBaseExtensions.cs b/SabreTools.Core/DictionaryBaseExtensions.cs index 348bc826..e82ebff5 100644 --- a/SabreTools.Core/DictionaryBaseExtensions.cs +++ b/SabreTools.Core/DictionaryBaseExtensions.cs @@ -46,7 +46,7 @@ namespace SabreTools.Core #endregion #region Conversion - + /// /// Convert a DatItem to a Rom /// @@ -255,10 +255,11 @@ namespace SabreTools.Core // If we have a file that has no known size, rely on the hashes only if (selfSize == null && self.HashMatch(other)) + return true; - // If we get a partial match - if (selfSize == otherSize && self.HashMatch(other)) - return true; + // If we get a partial match + if (selfSize == otherSize && self.HashMatch(other)) + return true; // All other cases fail return false; @@ -524,7 +525,7 @@ namespace SabreTools.Core } #endregion - + #region Information Filling /// @@ -647,7 +648,7 @@ namespace SabreTools.Core } #endregion - + #region Suffix Generation ///