Skip to content

Commit

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

Please sign in to comment.