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
@@ -254,14 +254,14 @@ object KeywordCompletion {
is KtDeclarationWithInitializer -> {
val initializer = parent.initializer
if (prevParent == initializer) {
return buildFilterWithContext("val v = ", initializer!!, position)
return buildFilterWithContext("val v = ", initializer, position)
}
}
is KtParameter -> {
val default = parent.defaultValue
if (prevParent == default) {
return buildFilterWithContext("val v = ", default!!, position)
return buildFilterWithContext("val v = ", default, position)
}
}