Skip to content

Commit

Permalink
fix corner case
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno committed Dec 3, 2021
1 parent 02ee800 commit 38236c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rosidl_adapter/rosidl_adapter/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ def extract_file_level_comments(message_string):
file_level_comments = lines[0:index]
other = lines[index:]
else:
file_level_comments = []
other = lines[:]
file_level_comments = lines[:]
other = []
file_level_comments = [line.lstrip(COMMENT_DELIMITER) for line in file_level_comments]
return file_level_comments, other

Expand Down

0 comments on commit 38236c9

Please sign in to comment.