Skip to content

Commit

Permalink
Merge pull request #1146 from veyndan/login
Browse files Browse the repository at this point in the history
Remove redundant null check
  • Loading branch information
Meisolsson committed Jan 15, 2018
2 parents 8b57371 + ab292d9 commit f1b947d
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -85,8 +85,6 @@ public static void configureSyncFor(Account account) {

private AccountManager accountManager;

private Account[] accounts;

private String accessToken;

private String scope;
Expand All @@ -108,9 +106,9 @@ public void onCreate(Bundle savedInstanceState) {

accountManager = AccountManager.get(this);

accounts = accountManager.getAccountsByType(getString(R.string.account_type));
Account[] accounts = accountManager.getAccountsByType(getString(R.string.account_type));

if (accounts != null && accounts.length > 0) {
if (accounts.length > 0) {
openMain();
}
checkOauthConfig();
Expand Down

0 comments on commit f1b947d

Please sign in to comment.