Removed unnecessary !! in a couple of places.
This commit is contained in:
committed by
alexander-gorshenev
parent
77eff75783
commit
e1cfb213a4
+2
-2
@@ -144,8 +144,8 @@ private fun Properties.storeProperties(file: File) {
|
|||||||
|
|
||||||
private fun Properties.putAndRunOnReplace(key: Any, newValue: Any, beforeReplace: (Any, Any, Any) -> Unit) {
|
private fun Properties.putAndRunOnReplace(key: Any, newValue: Any, beforeReplace: (Any, Any, Any) -> Unit) {
|
||||||
val oldValue = this[key]
|
val oldValue = this[key]
|
||||||
if (oldValue != null && oldValue!! != newValue) {
|
if (oldValue != null && oldValue != newValue) {
|
||||||
beforeReplace(key, oldValue!!, newValue)
|
beforeReplace(key, oldValue, newValue)
|
||||||
}
|
}
|
||||||
this[key] = newValue
|
this[key] = newValue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user