From 64c74580726350566f5fd25df7646a9f7c58009f Mon Sep 17 00:00:00 2001 From: DadiBit <38182988+DadiBit@users.noreply.github.com> Date: Sat, 15 Jul 2023 10:16:21 +0200 Subject: [PATCH] feat: inlined Historical invoke operator --- src/main/kotlin/com/openmeteo/api/Historical.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/openmeteo/api/Historical.kt b/src/main/kotlin/com/openmeteo/api/Historical.kt index 890b383..4124dfd 100644 --- a/src/main/kotlin/com/openmeteo/api/Historical.kt +++ b/src/main/kotlin/com/openmeteo/api/Historical.kt @@ -24,13 +24,13 @@ object Historical : Endpoint( operator fun invoke(query: Query, context: URL = this.context) = 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,