Skip to content

Commit cbcc115

Browse files
committed
This should have a debug statement too
1 parent 10286e8 commit cbcc115

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

BinaryObjectScanner/Scanner.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,13 @@ private ProtectionDictionary GetInternalProtections(string fileName, Stream stre
267267
{
268268
// Quick sanity check before continuing
269269
if (!stream.CanRead)
270+
{
271+
if (_includeDebug) Console.WriteLine($"{fileName} does not have a readable stream, skipping...");
270272
return [];
273+
}
271274

272275
// Initialize the protections found
273-
var protections = new ProtectionDictionary();
276+
var protections = new ProtectionDictionary();
274277

275278
// Get the extension for certain checks
276279
string extension = Path.GetExtension(fileName).ToLower().TrimStart('.');

0 commit comments

Comments
 (0)