Move constructor closer to use

This commit is contained in:
Matt Nadareski
2025-09-22 08:58:43 -04:00
parent cb4c4cb3fb
commit 4a94c80ec1

View File

@@ -297,9 +297,6 @@ namespace BinaryObjectScanner
return [];
}
// Initialize the protections found
var protections = new ProtectionDictionary();
// Get the extension for certain checks
string extension = Path.GetExtension(fileName).ToLower().TrimStart('.');
@@ -328,6 +325,9 @@ namespace BinaryObjectScanner
// Get the wrapper, if possible
var wrapper = WrapperFactory.CreateWrapper(fileType, stream);
// Initialize the protections found
var protections = new ProtectionDictionary();
#region Non-Archive File Types
// Try to scan file contents