Browse Source

Redundant condition

Source commit: 87fb60a315ad65919c4aaa3f77dc1b0bf09bed42
Martin Prikryl 2 years ago
parent
commit
c6206ce6e1
1 changed files with 2 additions and 5 deletions
  1. 2 5
      source/packages/filemng/DirView.pas

+ 2 - 5
source/packages/filemng/DirView.pas

@@ -1827,11 +1827,8 @@ begin
                   SHGFI_TYPENAME or SHGFI_SYSICONINDEX or SHGFI_USEFILEATTRIBUTES);
               end;
               TypeName := FileInfo.szTypeName;
-              if FetchIcon then
-              begin
-                ImageIndex := FileInfo.iIcon;
-                IconEmpty := False;
-              end;
+              ImageIndex := FileInfo.iIcon;
+              IconEmpty := False;
             {Capture exceptions generated by the shell}
             except
               ImageIndex := StdDirIcon;