Skip to content

Commit

Permalink
Remove early return, update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Jan 11, 2024
1 parent 60c1835 commit 16041a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bindings/python/iota_sdk/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 16041a9

Please sign in to comment.