1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 18:03:11 +08:00

Explicitly return list

This commit is contained in:
Dean Herbert 2017-10-25 23:53:09 +09:00
parent e62928102c
commit c260b0d2a5

View File

@ -60,12 +60,12 @@ namespace osu.Game.Input
}
/// <summary>
/// Retrieve <see cref="DatabasedKeyBinding"/>s for a specified ruleset/variant content.
/// Retrieve <see cref="KeyBinding"/>s for a specified ruleset/variant content.
/// </summary>
/// <param name="rulesetId">The ruleset's internal ID.</param>
/// <param name="variant">An optional variant.</param>
/// <returns></returns>
public IEnumerable<DatabasedKeyBinding> Query(int? rulesetId = null, int? variant = null) =>
public List<DatabasedKeyBinding> Query(int? rulesetId = null, int? variant = null) =>
GetContext().DatabasedKeyBinding.Where(b => b.RulesetID == rulesetId && b.Variant == variant).ToList();
public void Update(KeyBinding keyBinding)