Remove redundant return

This commit is contained in:
Andrew Rabert 2018-04-23 22:49:55 -04:00
parent 727219a1ca
commit 8f0a27bfec
1 changed files with 6 additions and 13 deletions

View File

@ -232,11 +232,9 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
rewindButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) { rewindButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) {
@Override @Override
protected Void doInBackground() throws Throwable { protected Void doInBackground() throws Throwable {
if (getDownloadService() == null) { if (getDownloadService() != null) {
return null; getDownloadService().rewind();
} }
getDownloadService().rewind();
return null; return null;
} }
}.execute()); }.execute());
@ -245,11 +243,9 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
previousButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) { previousButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) {
@Override @Override
protected Void doInBackground() throws Throwable { protected Void doInBackground() throws Throwable {
if (getDownloadService() == null) { if (getDownloadService() != null) {
return null; getDownloadService().previous();
} }
getDownloadService().previous();
return null; return null;
} }
}.execute()); }.execute());
@ -264,7 +260,6 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
} else { } else {
getDownloadService().start(); getDownloadService().start();
} }
return null; return null;
} }
}.execute()); }.execute());
@ -273,11 +268,9 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
nextButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) { nextButton.setOnClickListener(v -> new SilentBackgroundTask<Void>(SubsonicFragmentActivity.this) {
@Override @Override
protected Void doInBackground() throws Throwable { protected Void doInBackground() throws Throwable {
if (getDownloadService() == null) { if (getDownloadService() != null) {
return null; getDownloadService().next();
} }
getDownloadService().next();
return null; return null;
} }
}.execute()); }.execute());