Eliminate a set of warnings, mostly nullability ones

This commit is contained in:
Mikhail Glukhikh
2017-08-15 11:05:56 +03:00
committed by Mikhail Glukhikh
parent 82fc221470
commit 3623f581b8
52 changed files with 49 additions and 74 deletions
@@ -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")
}
}