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 91a4613 commit 83ea1d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions iyp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def batch_format_link_properties(links: list, inplace=True) -> Optional[list]:
for link in links:
for idx, prop_dict in enumerate(link['props']):
link['props'][idx] = format_properties(prop_dict)
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 83ea1d7

Please sign in to comment.