Skip to content

Commit 3693b3e

Browse files
authored
Fix header checker when copyright regex is None (FreeRTOS#843)
Allow header_checker.py to work as it did before when no copyright regex is defined.
1 parent 2808e48 commit 3693b3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/scripts/common/header_checker.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ def __init__(
7272
self.padding = padding
7373
self.header = header
7474

75-
self.copyright_regex = re.compile(copyright_regex)
75+
if copyright_regex:
76+
self.copyright_regex = re.compile(copyright_regex)
77+
else:
78+
self.copyright_regex = None
7679

7780
# Construct mutated header for assembly files
7881
self.asm_header = [";" + line for line in header]

0 commit comments

Comments
 (0)