We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86b2624 commit ffd46c8Copy full SHA for ffd46c8
.github/workflows/set_matrix.py
@@ -16,7 +16,11 @@ def json_from_file_ignore_comments(filepath):
16
with open(filepath, "r") as fh:
17
for line in fh:
18
cleaned_line = line.split("//", 1)[0]
19
- if len(cleaned_line) > 0 and line.endswith("\n") and "\n" not in cleaned_line:
+ if (
20
+ len(cleaned_line) > 0
21
+ and line.endswith("\n")
22
+ and "\n" not in cleaned_line
23
+ ):
24
cleaned_line += "\n"
25
contents += cleaned_line
26
json_data = json.loads(contents)
0 commit comments