Skip to content

Commit

Permalink
Check if gitModified is null, rather than length of file list
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Jun 10, 2023
1 parent 0225bae commit ebd7795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarkdownToDiscord/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async Task PostMarkdownFile(IMessageChannel channel, MarkdownParser parser, Http
{
if(!file.EndsWith(".md")) continue;

if (gitFiles.Count > 0 && !gitFiles.Contains(file))
if (gitModified != null && !gitFiles.Contains(file))
{
Console.WriteLine($"File {file} was not modified by git; skipping.");
continue;
Expand Down

0 comments on commit ebd7795

Please sign in to comment.