Skip to content

Commit

Permalink
fix: let dev omit query modifier on GeocodingGet
Browse files Browse the repository at this point in the history
  • Loading branch information
DadiBit committed Jun 15, 2023
1 parent 289d6dd commit 7b7a3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/kotlin/com/openmeteo/api/GeocodingGet.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object GeocodingGet : Endpoint(
operator fun invoke(
id: Int,
context: URL = this.context,
query: Query.() -> Unit,
query: Query.() -> Unit = {},
) = Query(id).let {
it.query()
this(it, context)
Expand Down

0 comments on commit 7b7a3c2

Please sign in to comment.