Remove unnesessary Username field check

This commit is contained in:
Andrey Zavadskiy 2016-12-24 09:16:17 +03:00
parent ba1d0b3a84
commit 5fbc0e408b

View File

@ -68,7 +68,7 @@ namespace osu.Game
Dependencies.Cache(API = new APIAccess
{
Username = Config.Get<string>(OsuConfig.Username),
Token = string.IsNullOrEmpty(Config.Get<string>(OsuConfig.Username)) ? string.Empty : Config.Get<string>(OsuConfig.Token)
Token = Config.Get<string>(OsuConfig.Username)
});
API.Register(this);