Code cleanup: x as? Type ?: return -> if (x !is Type) return
This commit is contained in:
@@ -52,7 +52,7 @@ val PersistentLibraryKind<*>?.platform: TargetPlatform
|
||||
}
|
||||
|
||||
fun getLibraryPlatform(project: Project, library: Library): TargetPlatform {
|
||||
library as? LibraryEx ?: return JvmPlatform
|
||||
if (library !is LibraryEx) return JvmPlatform
|
||||
if (library.isDisposed) return JvmPlatform
|
||||
|
||||
return library.effectiveKind(project).platform
|
||||
|
||||
Reference in New Issue
Block a user