Skip to content

Commit

Permalink
Fix error path for search_copyright_information. (#491)
Browse files Browse the repository at this point in the history
Callers now expect it to return a 4-tuple, but in the
case that there was no data it was only returning a 2-tuple.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored May 16, 2024
1 parent f985e67 commit f5d1cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ament_copyright/ament_copyright/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def determine_filetype(path):

def search_copyright_information(content):
if content is None:
return [], content
return [], [], [], content
# regex for matching years or year ranges (yyyy-yyyy) separated by colons
year = r'\d{4}'
year_range = '%s-%s' % (year, year)
Expand Down

0 comments on commit f5d1cad

Please sign in to comment.