mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 14:17:06 +09:00
Switch back to FirstOrDefault to allow for weird testing logic to pass
This commit is contained in:
@ -41,7 +41,7 @@ namespace osu.Game.Online.API
|
||||
|
||||
public Mod ToMod(Ruleset ruleset)
|
||||
{
|
||||
Mod resultMod = ruleset.GetAllMods().SingleOrDefault(m => m.Acronym == Acronym);
|
||||
Mod resultMod = ruleset.GetAllMods().FirstOrDefault(m => m.Acronym == Acronym);
|
||||
|
||||
if (resultMod == null)
|
||||
throw new InvalidOperationException($"There is no mod in the ruleset ({ruleset.ShortName}) matching the acronym {Acronym}.");
|
||||
|
Reference in New Issue
Block a user