Skip to content

Commit

Permalink
Use Kotlin map.forEach instead of Java 8 method. fixes #162 (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
govorovsky authored and rybalkinsd committed Oct 26, 2019
1 parent 9d1c434 commit bf23f57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ class HeaderContext {
map["cookie"] = CookieContext().also(init).collect()
}

internal fun forEach(action: (k: String, v: Any) -> Unit) = map.forEach(action)
internal fun forEach(action: (k: String, v: Any) -> Unit) = map.forEach { (k, v) -> action(k, v) }
}

0 comments on commit bf23f57

Please sign in to comment.