From 16041a9973e3534df93ca90747715548481d0ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Thu, 11 Jan 2024 13:41:14 +0100 Subject: [PATCH] Remove early return, update comment --- bindings/python/iota_sdk/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bindings/python/iota_sdk/common.py b/bindings/python/iota_sdk/common.py index 074a1fe3c2..7d82f307ce 100644 --- a/bindings/python/iota_sdk/common.py +++ b/bindings/python/iota_sdk/common.py @@ -8,7 +8,7 @@ def custom_encoder(func, *args, **kwargs): - """The routine of dump json string. + """Converts the parameters to a JSON string and removes None values. """ class MyEncoder(JSONEncoder): """Custom encoder @@ -31,7 +31,6 @@ def default(self, o): if callable(items_method): for k, v in obj_dict.items(): obj_dict[k] = dumps(v, cls=MyEncoder) - return obj_dict return obj_dict return o message = func(*args, **kwargs)