From 9639f40e55a59533d32edf978f6dcaccd2170d1c Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 20 Sep 2025 16:15:54 -0400 Subject: [PATCH] No reason for these to use inline null checks --- BinaryObjectScanner/Scanner.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BinaryObjectScanner/Scanner.cs b/BinaryObjectScanner/Scanner.cs index f76a3c51..cc950298 100644 --- a/BinaryObjectScanner/Scanner.cs +++ b/BinaryObjectScanner/Scanner.cs @@ -347,10 +347,12 @@ namespace BinaryObjectScanner } // Prepare the returned protections - subProtections?.StripFromKeys(tempPath); - subProtections?.PrependToKeys(fileName); if (subProtections != null) + { + subProtections.StripFromKeys(tempPath); + subProtections.PrependToKeys(fileName); protections.Append(subProtections); + } } catch (Exception ex) {