From e55b32e285e7c2c20083a4a2a61d1d047723e98c Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Fri, 24 May 2024 12:17:26 +0200 Subject: [PATCH] fixup! refactor: do not store ConsumedThings in InternalServient --- lib/src/core/implementation/servient.dart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/src/core/implementation/servient.dart b/lib/src/core/implementation/servient.dart index 327b6553..ae7f6b4d 100644 --- a/lib/src/core/implementation/servient.dart +++ b/lib/src/core/implementation/servient.dart @@ -242,11 +242,8 @@ class InternalServient implements Servient { /// Consumes a [ThingDescription] and returns a [scripting_api.ConsumedThing]. Future consume( ThingDescription thingDescription, - ) async { - final newThing = ConsumedThing(this, thingDescription); - - return newThing; - } + ) async => + ConsumedThing(this, thingDescription); /// Exposes a Thing based on an [scripting_api.ExposedThingInit]. Future produce(