mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 12:31:26 +07:00
[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:
committed by
intellij-monorepo-bot
parent
82d4fdb741
commit
f108875d9f
@@ -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) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user