Skip to content

Commit 4a94c80

Browse files
committed
Move constructor closer to use
1 parent cb4c4cb commit 4a94c80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

BinaryObjectScanner/Scanner.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,6 @@ private ProtectionDictionary GetInternalProtections(string fileName, Stream stre
297297
return [];
298298
}
299299

300-
// Initialize the protections found
301-
var protections = new ProtectionDictionary();
302-
303300
// Get the extension for certain checks
304301
string extension = Path.GetExtension(fileName).ToLower().TrimStart('.');
305302

@@ -328,6 +325,9 @@ private ProtectionDictionary GetInternalProtections(string fileName, Stream stre
328325
// Get the wrapper, if possible
329326
var wrapper = WrapperFactory.CreateWrapper(fileType, stream);
330327

328+
// Initialize the protections found
329+
var protections = new ProtectionDictionary();
330+
331331
#region Non-Archive File Types
332332

333333
// Try to scan file contents

0 commit comments

Comments
 (0)