Skip to content

Commit

Permalink
feat: inlined Historical invoke operator
Browse files Browse the repository at this point in the history
  • Loading branch information
DadiBit committed Jul 15, 2023
1 parent ce636cd commit 64c7458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/openmeteo/api/Historical.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ object Historical : Endpoint(
operator fun invoke(query: Query, context: URL = this.context) =
query<Response, Query>(query, context)

operator fun invoke(
inline operator fun invoke(
city: City,
context: URL = this.context,
query: Query.() -> Unit,
) = this(city.latitude, city.longitude, context, query)

operator fun invoke(
inline operator fun invoke(
latitude: Float,
longitude: Float,
context: URL = this.context,
Expand Down

0 comments on commit 64c7458

Please sign in to comment.