Skip to content

Commit

Permalink
Return None if inplace is True
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedawnallah committed Dec 21, 2023
1 parent 49bc6aa commit 8286682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iyp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def batch_format_link_properties(links: list, inplace=True) -> list:
for link in links:
for idx, prop_dict in enumerate(link['props']):
link['props'][idx] = format_properties(prop_dict)
return links
return None
return [{'src_id': link['src_id'],
'dst_id': link['dst_id'],
'props': [format_properties(d) for d in link['props']]}
Expand Down

0 comments on commit 8286682

Please sign in to comment.