Skip to content

Commit 9639f40

Browse files
committed
No reason for these to use inline null checks
1 parent 7fa41ba commit 9639f40

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

BinaryObjectScanner/Scanner.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,12 @@ private ProtectionDictionary GetInternalProtections(string fileName, Stream stre
347347
}
348348

349349
// Prepare the returned protections
350-
subProtections?.StripFromKeys(tempPath);
351-
subProtections?.PrependToKeys(fileName);
352350
if (subProtections != null)
351+
{
352+
subProtections.StripFromKeys(tempPath);
353+
subProtections.PrependToKeys(fileName);
353354
protections.Append(subProtections);
355+
}
354356
}
355357
catch (Exception ex)
356358
{

0 commit comments

Comments
 (0)