mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Trim redundant IsLoggedIn checks
This commit is contained in:
@ -156,7 +156,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
private void onMultiplayer()
|
||||
{
|
||||
if (!api.IsLoggedIn || api.State.Value != APIState.Online)
|
||||
if (api.State.Value != APIState.Online)
|
||||
{
|
||||
notifications?.Post(new SimpleNotification
|
||||
{
|
||||
@ -177,7 +177,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
private void onPlaylists()
|
||||
{
|
||||
if (!api.IsLoggedIn || api.State.Value != APIState.Online)
|
||||
if (api.State.Value != APIState.Online)
|
||||
{
|
||||
notifications?.Post(new SimpleNotification
|
||||
{
|
||||
|
Reference in New Issue
Block a user