1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 00:02:56 +08:00

Fix lint errors

This commit is contained in:
Layendan 2024-07-21 17:32:48 -07:00 committed by Dean Herbert
parent a575566638
commit e4cccb5e31
No known key found for this signature in database
4 changed files with 11 additions and 13 deletions

View File

@ -19,7 +19,7 @@ namespace osu.Game.Tests.Visual.Ranking
public partial class TestSceneCollectionButton : OsuManualInputManagerTestScene public partial class TestSceneCollectionButton : OsuManualInputManagerTestScene
{ {
private CollectionButton collectionButton; private CollectionButton collectionButton;
private BeatmapInfo beatmapInfo = new BeatmapInfo { OnlineID = 88 }; private readonly BeatmapInfo beatmapInfo = new BeatmapInfo { OnlineID = 88 };
[SetUpSteps] [SetUpSteps]
public void SetUpSteps() public void SetUpSteps()

View File

@ -24,7 +24,6 @@ namespace osu.Game.Tests.Visual.Ranking
private DummyAPIAccess dummyAPI => (DummyAPIAccess)API; private DummyAPIAccess dummyAPI => (DummyAPIAccess)API;
[SetUpSteps] [SetUpSteps]
public void SetUpSteps() public void SetUpSteps()
{ {

View File

@ -17,15 +17,16 @@ namespace osu.Game.Screens.Ranking
{ {
public partial class CollectionPopover : OsuPopover public partial class CollectionPopover : OsuPopover
{ {
private OsuMenu menu;
private readonly BeatmapInfo beatmapInfo; private readonly BeatmapInfo beatmapInfo;
[Resolved] [Resolved]
private RealmAccess realm { get; set; } = null!; private RealmAccess realm { get; set; } = null!;
[Resolved]
private ManageCollectionsDialog? manageCollectionsDialog { get; set; }
public CollectionPopover(BeatmapInfo beatmapInfo) : base(false) [Resolved]
private ManageCollectionsDialog manageCollectionsDialog { get; set; }
public CollectionPopover(BeatmapInfo beatmapInfo)
: base(false)
{ {
this.beatmapInfo = beatmapInfo; this.beatmapInfo = beatmapInfo;
} }
@ -38,7 +39,7 @@ namespace osu.Game.Screens.Ranking
Children = new[] Children = new[]
{ {
menu = new OsuMenu(Direction.Vertical, true) new OsuMenu(Direction.Vertical, true)
{ {
Items = items, Items = items,
}, },

View File

@ -79,8 +79,7 @@ namespace osu.Game.Screens.Ranking
private void getBeatmapSet() private void getBeatmapSet()
{ {
GetBeatmapSetRequest beatmapSetRequest; GetBeatmapSetRequest beatmapSetRequest = new GetBeatmapSetRequest(BeatmapSetInfo.OnlineID);
beatmapSetRequest = new GetBeatmapSetRequest(BeatmapSetInfo.OnlineID);
loading.Show(); loading.Show();
beatmapSetRequest.Success += beatmapSet => beatmapSetRequest.Success += beatmapSet =>
@ -103,7 +102,6 @@ namespace osu.Game.Screens.Ranking
private void toggleFavouriteStatus() private void toggleFavouriteStatus()
{ {
Enabled.Value = false; Enabled.Value = false;
loading.Show(); loading.Show();