AA: remove redundant code

computeIfAbsent right below will do the same thing
This commit is contained in:
Jinseong Jeon
2024-02-16 13:57:57 -08:00
committed by teamcity
parent 7911207734
commit 6f6496d78a
@@ -381,9 +381,6 @@ public class KotlinFakeClsStubsCache {
storage: (VirtualFile) -> Map<VirtualFile, KotlinFileStubImpl>
): Map<VirtualFile, KotlinFileStubImpl>? {
val service = ApplicationManager.getApplication().getService(KotlinFakeClsStubsCache::class.java) ?: return null
if (service.fakeFileClsStubs[root.path] == null) {
service.fakeFileClsStubs[root.path] = storage(root)
}
return service.fakeFileClsStubs.computeIfAbsent(root.path) { _ ->
storage(root)
}