Skip to content

Commit

Permalink
feat: remove unnecessary arg
Browse files Browse the repository at this point in the history
Signed-off-by: TetsuKawa <kawaguchitnon@icloud.com>
  • Loading branch information
TetsuKawa committed Mar 4, 2025
1 parent dbbb936 commit 4c83cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ros2agnocast/ros2agnocast/verb/topic_info_agnocast.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def main(self, *, args):
"qos_is_transient_local": sub_topic_info_ret_array[i].qos_is_transient_local,
})
if sub_topic_info_ret_count.value != 0 and sub_topic_info_ret_array is not None:
lib.free_agnocast_topic_info_ret(sub_topic_info_ret_array, sub_topic_info_ret_count)
lib.free_agnocast_topic_info_ret(sub_topic_info_ret_array)

# get agnocast pub node list
pub_topic_info_ret_count = ctypes.c_int()
Expand All @@ -127,7 +127,7 @@ def main(self, *, args):
"qos_is_transient_local": pub_topic_info_ret_array[i].qos_is_transient_local,
})
if pub_topic_info_ret_count.value != 0 and pub_topic_info_ret_array is not None:
lib.free_agnocast_topic_info_ret(pub_topic_info_ret_array, pub_topic_info_ret_count)
lib.free_agnocast_topic_info_ret(pub_topic_info_ret_array)

# get ros2 topic list
topic_names_and_types = get_topic_names_and_types(node=node, include_hidden_topics=True)
Expand Down

0 comments on commit 4c83cdb

Please sign in to comment.