Skip to content

Commit

Permalink
feat: inlined Forecast invoke operator
Browse files Browse the repository at this point in the history
  • Loading branch information
DadiBit committed Jul 15, 2023
1 parent d56b898 commit d049cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/openmeteo/api/Forecast.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ object Forecast : 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 d049cf8

Please sign in to comment.