mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +08:00
convert field to a local variable
This commit is contained in:
parent
fe9e53e383
commit
cfa0ef6fd9
@ -10,8 +10,6 @@ namespace osu.Game.Tests.Visual.Online
|
||||
{
|
||||
public class TestSceneShowMoreButton : OsuTestScene
|
||||
{
|
||||
private readonly ShowMoreButton button;
|
||||
|
||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||
{
|
||||
typeof(ShowMoreButton),
|
||||
@ -19,6 +17,8 @@ namespace osu.Game.Tests.Visual.Online
|
||||
|
||||
public TestSceneShowMoreButton()
|
||||
{
|
||||
ShowMoreButton button;
|
||||
|
||||
Add(button = new ShowMoreButton
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
|
Loading…
Reference in New Issue
Block a user