Trim redundant IsLoggedIn checks

This commit is contained in:
Bartłomiej Dach 2020-12-29 10:56:29 +01:00
parent 906a9b79b5
commit 5d23199233
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ private void load(AudioManager audio, IdleTracker idleTracker, GameHost host)
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 @@ private void onMultiplayer()
private void onPlaylists()
{
if (!api.IsLoggedIn || api.State.Value != APIState.Online)
if (api.State.Value != APIState.Online)
{
notifications?.Post(new SimpleNotification
{