Skip to content

Commit 64c7458

Browse files
committed
feat: inlined Historical invoke operator
1 parent ce636cd commit 64c7458

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/kotlin/com/openmeteo/api/Historical.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ object Historical : Endpoint(
2424
operator fun invoke(query: Query, context: URL = this.context) =
2525
query<Response, Query>(query, context)
2626

27-
operator fun invoke(
27+
inline operator fun invoke(
2828
city: City,
2929
context: URL = this.context,
3030
query: Query.() -> Unit,
3131
) = this(city.latitude, city.longitude, context, query)
3232

33-
operator fun invoke(
33+
inline operator fun invoke(
3434
latitude: Float,
3535
longitude: Float,
3636
context: URL = this.context,

0 commit comments

Comments
 (0)