Skip to content

Commit

Permalink
fix the check_params script
Browse files Browse the repository at this point in the history
when a parameter line had a comment, we were removing the wrong
part of the line
  • Loading branch information
zingale committed May 16, 2024
1 parent 16ad492 commit 19240cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def doit(castro_dir):
# remove comments
idx = line.find("#")
if idx > 0:
line = line[idx:]
line = line[:idx]

found_param = pattern.match(line)
if not found_param:
Expand Down

0 comments on commit 19240cf

Please sign in to comment.