Skip to content

Commit 580f118

Browse files
authored
spdx-generator: Fix unassigned variable error (#52)
1 parent a05ef0b commit 580f118

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

mbed_tools_ci_scripts/spdx_report/spdx_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252

5353
def determine_file_licence(path: Path) -> Optional[str]:
5454
"""Determines the licence of a file based on the SPDX identifier."""
55+
licence = None
5556
try:
5657
match = scan_file_for_pattern(path, SPDX_IDENTIFIER_REGEX_PATTERN)
5758
if not match:

news/20200617.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix unassigned variable error

0 commit comments

Comments
 (0)