Skip to content

Commit bd5d775

Browse files
committed
Updated constructor to use a default parameter instead of going the overload route.
1 parent 510c334 commit bd5d775

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

SpotifyAPI/SpoitfyLocalAPI/SpotifyAPI.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@ public class SpotifyLocalAPIClass
1111
SpotifyMusicHandler mh;
1212
RemoteHandler rh;
1313
SpotifyEventHandler eh;
14-
static bool betaMode = false;
14+
static bool betaMode;
1515

16-
public SpotifyLocalAPIClass()
16+
public SpotifyLocalAPIClass(bool betaMode = false)
1717
{
1818
rh = RemoteHandler.GetInstance();
1919
mh = new SpotifyMusicHandler();
2020
eh = new SpotifyEventHandler(this, mh);
21-
}
22-
23-
public SpotifyLocalAPIClass(bool betaMode) : this()
24-
{
2521
SpotifyLocalAPIClass.betaMode = betaMode;
2622
}
2723

0 commit comments

Comments
 (0)