mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Use 'out var'.
This commit is contained in:
@ -27,8 +27,7 @@ namespace osu.Game.Storyboards
|
||||
|
||||
public StoryboardLayer GetLayer(string name)
|
||||
{
|
||||
StoryboardLayer layer;
|
||||
if (!layers.TryGetValue(name, out layer))
|
||||
if (!layers.TryGetValue(name, out var layer))
|
||||
layers[name] = layer = new StoryboardLayer(name, layers.Values.Min(l => l.Depth) - 1);
|
||||
|
||||
return layer;
|
||||
|
Reference in New Issue
Block a user