Removed unnecessary !! in a couple of places.

This commit is contained in:
Alexander Gorshenev
2017-10-18 12:11:47 +03:00
committed by alexander-gorshenev
parent 77eff75783
commit e1cfb213a4
@@ -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
}