Skip to content

Commit

Permalink
fix: ruff C901
Browse files Browse the repository at this point in the history
Signed-off-by: Hayato Mizushima <[email protected]>
  • Loading branch information
hayato-m126 committed Nov 15, 2024
1 parent b93b9f5 commit fe1644a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions driving_log_replayer_v2/launch/driving_log_replayer_v2.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,12 @@ def launch_bag_player(
"/planning/mission_planning/route:=/unused/planning/mission_planning/route",
)
# user defined remap
remap_topics = []
if conf["remap_arg"] != "":
remap_topics: list[str] = conf["remap_arg"].split(",")
if conf["remap_profile"] != "":
remap_topics = extract_remap_topics(conf["remap_profile"])
for topic in remap_topics:
user_remap_topics: list[str] = (
conf["remap_arg"].split(",")
if conf["remap_arg"] != ""
else extract_remap_topics(conf["remap_profile"])
)
for topic in user_remap_topics:
if topic.startswith("/"):
remap_str = f"{topic}:=/unused{topic}"
if remap_str not in remap_list:
Expand Down

0 comments on commit fe1644a

Please sign in to comment.