Skip to content

Commit 08374b6

Browse files
generatedunixname89002005287564meta-codesync[bot]
authored andcommitted
fbsource//fbandroid/libraries/fresco/imagepipeline-base/src/main/java/com/facebook/cache/disk:disk
Reviewed By: strulovich Differential Revision: D91303836 fbshipit-source-id: e3d4badff0c160b3fa1623294a46f76a3785ab88
1 parent 013670d commit 08374b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

imagepipeline-base/src/main/java/com/facebook/cache/disk/DefaultDiskStorage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ class DefaultDiskStorage(rootDirectory: File, version: Int, cacheErrorLogger: Ca
427427
init {
428428
checkNotNull(cachedFile)
429429
this.id = checkNotNull(id)
430-
this.resource = FileBinaryResource.create(cachedFile!!)
430+
this.resource = FileBinaryResource.create(cachedFile)
431431
this.size = -1
432432
this.timestamp = -1
433433
}

imagepipeline-base/src/main/java/com/facebook/cache/disk/DiskStorageCache.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ class DiskStorageCache(
695695
max((entry.getTimestamp() - now).toDouble(), maxTimeDelta.toDouble()).toLong()
696696
} else if (indexPopulateAtStartupEnabled) {
697697
checkNotNull(tempResourceIndex)
698-
tempResourceIndex!!.add(entry.getId())
698+
tempResourceIndex.add(entry.getId())
699699
}
700700
}
701701
if (foundFutureTimestamp) {
@@ -716,7 +716,7 @@ class DiskStorageCache(
716716
if (indexPopulateAtStartupEnabled && resourceIndex !== tempResourceIndex) {
717717
checkNotNull(tempResourceIndex)
718718
resourceIndex.clear()
719-
resourceIndex.addAll(tempResourceIndex!!)
719+
resourceIndex.addAll(tempResourceIndex)
720720
}
721721
cacheStats.set(size, count.toLong())
722722
}

0 commit comments

Comments
 (0)