Skip to content

Commit 7331f8f

Browse files
committed
Remove redundant check
1 parent 6f4e713 commit 7331f8f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

BinaryObjectScanner/FileType/MicrosoftCAB.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,8 @@ private static void ExtractFolder(SabreTools.Serialization.Wrappers.MicrosoftCab
189189
if (blockStream == null || blockStream.Length == 0)
190190
return;
191191

192-
// Ensure files
193-
var files = GetFiles(cabArchive, folderIndex);
194-
if (files.Length == 0)
195-
return;
196-
197192
// Loop through the files
193+
var files = GetFiles(cabArchive, folderIndex);
198194
for (int i = 0; i < files.Length; i++)
199195
{
200196
var file = files[i];

0 commit comments

Comments
 (0)