Skip to content

Commit

Permalink
fix the check_params script (#2850)
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 authored May 20, 2024
1 parent e883e06 commit 097ac66
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 097ac66

Please sign in to comment.