Skip to content

Commit

Permalink
fixup! refactor: do not store ConsumedThings in InternalServient
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed May 24, 2024
1 parent 597c7fa commit e55b32e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/src/core/implementation/servient.dart
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,8 @@ class InternalServient implements Servient {
/// Consumes a [ThingDescription] and returns a [scripting_api.ConsumedThing].
Future<scripting_api.ConsumedThing> 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<scripting_api.ExposedThing> produce(
Expand Down

0 comments on commit e55b32e

Please sign in to comment.