Skip to content

Commit ffaa7b6

Browse files
zkoppertCopilot
andauthored
fix: null check
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d816e4f commit ffaa7b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

markdown_writer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@ def write_to_markdown(
5858
report_file.write(f"- {contributor}\n")
5959

6060
report_file.write("\n## Innersource Contributors:\n")
61-
for contributor in innersource_contributors:
62-
report_file.write(f"- {contributor}\n")
61+
if innersource_contributors:
62+
for contributor in innersource_contributors:
63+
report_file.write(f"- {contributor}\n")
64+
else:
65+
report_file.write("No InnerSource contributors found.\n")
6366

6467
report_file.write("\n## Innersource Contribution Counts:\n")
6568
if innersource_contribution_counts:

0 commit comments

Comments
 (0)