Skip to content

Commit

Permalink
perf: replace count with any in achievements search
Browse files Browse the repository at this point in the history
  • Loading branch information
DorielRivalet committed Apr 5, 2024
1 parent ec603e7 commit cc11a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MHFZ_Overlay/Services/AchievementService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2741,7 +2741,7 @@ join styleRankSkills in databaseManagerInstance.AllStyleRankSkills on quest.RunI
(quest.ActualOverlayMode == "Zen" || quest.ActualOverlayMode == "Speedrun") && quest.FinalTimeValue < Numbers.Frames1Minute * 5)
select quest;

if (foundQuest.Count() == 0)
if (!foundQuest.Any())
{
return false;
}
Expand All @@ -2762,7 +2762,7 @@ join styleRankSkills in databaseManagerInstance.AllStyleRankSkills on quest.RunI
select quest;
var totalCarts = 0;

if (questsWithCarts == null || questsWithCarts.Count() == 0)
if (questsWithCarts == null || !questsWithCarts.Any())
{
return false;
}
Expand Down

0 comments on commit cc11a96

Please sign in to comment.