mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Simplify LINQ expression
This commit is contained in:
@ -89,9 +89,9 @@ namespace osu.Game.Screens.Play
|
||||
/// <summary>
|
||||
/// Whether failing should be allowed.
|
||||
///
|
||||
/// By default, this checks whether any selected mod disallows failing.
|
||||
/// By default, this checks whether all selected mods allow failing.
|
||||
/// </summary>
|
||||
protected virtual bool AllowFail => !Mods.Value.OfType<IApplicableFailOverride>().Any(m => !m.AllowFail);
|
||||
protected virtual bool AllowFail => Mods.Value.OfType<IApplicableFailOverride>().All(m => m.AllowFail);
|
||||
|
||||
private readonly bool allowPause;
|
||||
private readonly bool showResults;
|
||||
|
Reference in New Issue
Block a user