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

@ -36,7 +36,7 @@ namespace osu.Game.Beatmaps
public string Hash { get; set; }
public string StoryboardFile => Files?.FirstOrDefault(f => f.Filename.EndsWith(".osb"))?.Filename;
public string StoryboardFile => Files?.Find(f => f.Filename.EndsWith(".osb"))?.Filename;
public List<BeatmapSetFileInfo> Files { get; set; }