mirror of
https://github.com/ppy/osu.git
synced 2026-06-03 03:20:16 +08:00
simplify bool check
This commit is contained in:
@@ -139,7 +139,7 @@ namespace osu.Game.Screens.Edit.Verify
|
||||
private IEnumerable<Issue> filterByScope(IEnumerable<Issue> issues, bool generalOnly)
|
||||
{
|
||||
return issues.Where(issue =>
|
||||
generalOnly ? issue.Check is IGeneralCheck : issue.Check is ICheck && issue.Check is not IGeneralCheck);
|
||||
generalOnly ? issue.Check is IGeneralCheck : issue.Check is not IGeneralCheck);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user