mirror of
https://github.com/nextcloud/android.git
synced 2024-11-30 08:25:21 +03:00
data:files Cleaned up onPostExecute() if-statements.
This commit is contained in:
parent
9efa675c2a
commit
49d0ccac7d
1 changed files with 8 additions and 8 deletions
|
@ -126,15 +126,15 @@ public class FilesServiceApiImpl implements FilesServiceApi {
|
|||
@Override
|
||||
protected void onPostExecute(Boolean success) {
|
||||
super.onPostExecute(success);
|
||||
if (success && remoteOcFile != null) {
|
||||
callback.onLoaded(remoteOcFile);
|
||||
return;
|
||||
} else if (success) {
|
||||
errorMessage = "File not found";
|
||||
}
|
||||
|
||||
callback.onError(errorMessage);
|
||||
if (success) {
|
||||
if (remoteOcFile != null) {
|
||||
callback.onLoaded(remoteOcFile);
|
||||
} else {
|
||||
errorMessage = "File not found";
|
||||
callback.onError(errorMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue