codacy: Avoid declaring a variable if it is unreferenced before a possible exit point.
Signed-off-by: Andy Scherzinger <[email protected]>
This commit is contained in:
1 file changed
+2
-2
@@ -303,13 +303,13 @@ public class DocumentsStorageProvider extends DocumentsProvider {
|
||||
throws FileNotFoundException {
|
||||
Log.d(TAG, "openDocumentThumbnail(), id=" + documentId);
|
||||
|
||||
Document document = toDocument(documentId);
|
||||
|
||||
Context context = getContext();
|
||||
if (context == null) {
|
||||
throw new FileNotFoundException("Context may not be null!");
|
||||
}
|
||||
|
||||
Document document = toDocument(documentId);
|
||||
|
||||
boolean exists = ThumbnailsCacheManager.containsBitmap(ThumbnailsCacheManager.PREFIX_THUMBNAIL
|
||||
+ document.getFile().getRemoteId());
|
||||
|
||||
|
||||
Reference in new issue
Block a user