Skip to content

Commit

Permalink
Removed unnecessary !! in a couple of places.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-gorshenev committed Oct 18, 2017
1 parent 77eff75 commit e1cfb21
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e1cfb21

Please sign in to comment.