From e1cfb213a4762901e35cd544a8a9d2c449dd64eb Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Wed, 18 Oct 2017 12:11:47 +0300 Subject: [PATCH] Removed unnecessary !! in a couple of places. --- .../org/jetbrains/kotlin/native/interop/gen/jvm/main.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt index 631c1960ba5..deee12bdd05 100644 --- a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt +++ b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt @@ -144,8 +144,8 @@ private fun Properties.storeProperties(file: File) { private fun Properties.putAndRunOnReplace(key: Any, newValue: Any, beforeReplace: (Any, Any, Any) -> Unit) { val oldValue = this[key] - if (oldValue != null && oldValue!! != newValue) { - beforeReplace(key, oldValue!!, newValue) + if (oldValue != null && oldValue != newValue) { + beforeReplace(key, oldValue, newValue) } this[key] = newValue }