Remove redundant empty if/else statement in NotificationActivity (#2953)

* Remove redundant empty if/else statement

This patch removes an empty if/else statement that has no effect on the execution flow of the program.

* Remove redundant empty if/else statement in MainActivity

This patch removes an empty if/else statement that has no effect on the execution flow of the program, which makes the code simpler.
This commit is contained in:
Dan Garry 2019-05-17 16:35:14 +02:00 committed by neslihanturan
parent 45fd7fe5fa
commit 877c669297
2 changed files with 0 additions and 3 deletions

View file

@ -485,8 +485,6 @@ public class MainActivity extends AuthenticatedActivity implements FragmentManag
viewPager.setCurrentItem(CONTRIBUTIONS_TAB_POSITION);
// TODO: If contrib fragment is visible and location permission is not given, display permission request button
} else {
}
}
return;

View file

@ -157,7 +157,6 @@ public class NotificationActivity extends NavigationBaseActivity {
no_notification.setVisibility(View.VISIBLE);
} else {
setAdapter(notificationList);
} if (notificationMenuItem != null) {
}
progressBar.setVisibility(View.GONE);
}, throwable -> {