[python] Don't return from a call argument in PyBuiltinCache.CachedFile.resolveTopLevel

People tend to find such code style wildly confusing.

GitOrigin-RevId: cede3fc5669a790d89bb0a205b3deb15a5ce16ef
This commit is contained in:
Mikhail Golubev
2025-06-12 15:13:16 +03:00
committed by intellij-monorepo-bot
parent 82d4fdb741
commit f108875d9f

View File

@@ -338,7 +338,7 @@ private class CachedFile(
}
fun resolveTopLevel(name: @NonNls String): PyClassType? {
return PyClassTypeImpl((file.findTopLevelClass(name) ?: return null), false)
return file.findTopLevelClass(name)?.let { pyClass -> PyClassTypeImpl(pyClass, false) }
}
}