Skip to content

Commit

Permalink
Did it without an Array conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
jedieaston committed Jan 27, 2022
1 parent 16d4318 commit a7b44c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WingetCreateCore/Common/PackageParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,8 @@ private static bool ParseExeInstallerType(string path, Installer baseInstaller,
private static bool IsWix(QDatabase installer)
{
return
Array.Exists(installer.Tables.ToArray(), table => table.Name.ToLower().Contains("wix")) ||
Array.Exists(installer.Properties.ToArray(), property => property.Property.ToLower().Contains("wix") || property.Value.ToLower().Contains("wix")) ||
installer.Tables.AsEnumerable().Any(table => table.Name.ToLower().Contains("wix")) ||
installer.Properties.AsEnumerable().Any(property => property.Property.ToLower().Contains("wix") || property.Value.ToLower().Contains("wix")) ||
installer.SummaryInfo.CreatingApp.ToLower().Contains("wix") ||
installer.SummaryInfo.CreatingApp.ToLower().Contains("windows installer xml");
}
Expand Down

0 comments on commit a7b44c6

Please sign in to comment.