Reduce some unused constants

This commit is contained in:
Matt Nadareski
2024-03-05 14:53:27 -05:00
parent 5ea131c7e1
commit 3166a438a8
2 changed files with 2 additions and 31 deletions

View File

@@ -63,8 +63,8 @@ namespace SabreTools.Core.Tools
// Cap the depth between 0 and 20, for now
if (depth < 0)
depth = 0;
else if (depth > Constants.SHA1ZeroBytes.Length)
depth = Constants.SHA1ZeroBytes.Length;
else if (depth > (Constants.SHA1Length / 2))
depth = (Constants.SHA1Length / 2);
// Loop through and generate the subdirectory
string path = string.Empty;