Use Find instead of FirstOrDefault

This commit is contained in:
Roman Kapustin
2019-01-05 19:35:33 +03:00
parent e596d4fc10
commit 4b5fc85875
13 changed files with 15 additions and 19 deletions

View File

@ -111,7 +111,7 @@ namespace osu.Game.Tests.Visual
if (progressingNotifications.Count(n => n.State == ProgressNotificationState.Active) < 3)
{
var p = progressingNotifications.FirstOrDefault(n => n.State == ProgressNotificationState.Queued);
var p = progressingNotifications.Find(n => n.State == ProgressNotificationState.Queued);
if (p != null)
p.State = ProgressNotificationState.Active;
}