1
0
mirror of https://github.com/nvllsvm/Audinaut synced 2025-02-16 19:40:37 +01:00

Remove redundant return

This commit is contained in:
Andrew Rabert 2018-04-23 22:49:55 -04:00
parent 727219a1ca
commit 8f0a27bfec

View File

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