File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . IO ;
4
- using System . Linq ;
5
4
using BinaryObjectScanner . Data ;
6
5
using BinaryObjectScanner . FileType ;
7
6
using BinaryObjectScanner . Interfaces ;
@@ -100,7 +99,7 @@ public ProtectionDictionary GetProtections(List<string>? paths)
100
99
if ( Directory . Exists ( path ) )
101
100
{
102
101
// Enumerate all files at first for easier access
103
- var files = IOExtensions . SafeGetFiles ( path , "*" , SearchOption . AllDirectories ) . ToList ( ) ;
102
+ List < string > files = [ .. IOExtensions . SafeGetFiles ( path , "*" , SearchOption . AllDirectories ) ] ;
104
103
105
104
// Scan for path-detectable protections
106
105
if ( _options . ScanPaths )
@@ -113,7 +112,7 @@ public ProtectionDictionary GetProtections(List<string>? paths)
113
112
for ( int i = 0 ; i < files . Count ; i ++ )
114
113
{
115
114
// Get the current file
116
- string file = files . ElementAt ( i ) ;
115
+ string file = files [ i ] ;
117
116
118
117
// Get the reportable file name
119
118
string reportableFileName = file ;
You can’t perform that action at this time.
0 commit comments