Eliminate a set of warnings, mostly nullability ones
This commit is contained in:
committed by
Mikhail Glukhikh
parent
82fc221470
commit
3623f581b8
+1
-1
@@ -30,7 +30,7 @@ object KotlinStdJSProjectDescriptor : KotlinLightProjectDescriptor() {
|
||||
override fun getSdk(): Sdk? = null
|
||||
|
||||
override fun configureModule(module: Module, model: ModifiableRootModel) {
|
||||
val configuration = JSLibraryStdDescription(module.project).createNewLibraryForTests() ?: error("Configuration should exist")
|
||||
val configuration = JSLibraryStdDescription(module.project).createNewLibraryForTests()
|
||||
|
||||
val editor = NewLibraryEditor(configuration.libraryType, configuration.properties)
|
||||
configuration.addRoots(editor)
|
||||
|
||||
@@ -69,7 +69,6 @@ fun Module.configureAs(kind: ModuleKind) {
|
||||
this.configureAs(KotlinStdJSProjectDescriptor)
|
||||
}
|
||||
|
||||
else -> throw IllegalArgumentException("Unknown kind=$kind")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user