mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
codacy: Avoid declaring a variable if it is unreferenced before a possible exit point.
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
bf76349998
commit
794705a8a4
1 changed files with 2 additions and 2 deletions
|
@ -139,8 +139,6 @@ public class DocumentsStorageProvider extends DocumentsProvider {
|
||||||
final long folderId = Long.parseLong(parentDocumentId);
|
final long folderId = Long.parseLong(parentDocumentId);
|
||||||
updateCurrentStorageManagerIfNeeded(folderId);
|
updateCurrentStorageManagerIfNeeded(folderId);
|
||||||
|
|
||||||
final FileCursor resultCursor = new FileCursor(projection);
|
|
||||||
|
|
||||||
final OCFile browsedDir = currentStorageManager.getFileById(folderId);
|
final OCFile browsedDir = currentStorageManager.getFileById(folderId);
|
||||||
|
|
||||||
Account account = currentStorageManager.getAccount();
|
Account account = currentStorageManager.getAccount();
|
||||||
|
@ -155,6 +153,8 @@ public class DocumentsStorageProvider extends DocumentsProvider {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final FileCursor resultCursor = new FileCursor(projection);
|
||||||
|
|
||||||
for (OCFile file : currentStorageManager.getFolderContent(browsedDir, false)) {
|
for (OCFile file : currentStorageManager.getFolderContent(browsedDir, false)) {
|
||||||
resultCursor.addFile(file);
|
resultCursor.addFile(file);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue