From 4e3ee488be1a6a1cc8624ccacba7735fadf2f791 Mon Sep 17 00:00:00 2001 From: izzy lyseggen Date: Wed, 24 Feb 2021 16:59:12 +0000 Subject: [PATCH] refactor(operations): small simplification --- speckle/api/operations.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/speckle/api/operations.py b/speckle/api/operations.py index 39569c7..fcce85f 100644 --- a/speckle/api/operations.py +++ b/speckle/api/operations.py @@ -66,8 +66,7 @@ def receive( # try local transport first. if the parent is there, we assume all the children are there and continue wth deserialisation using the local transport obj_string = local_transport.get_object(obj_id) if obj_string: - base = serializer.read_json(obj_string=obj_string) - return base + return serializer.read_json(obj_string=obj_string) if not remote_transport: raise SpeckleException(