Skip to content

Commit

Permalink
fix index out of bounds error
Browse files Browse the repository at this point in the history
  • Loading branch information
tmathura committed Aug 3, 2020
1 parent f27e1ba commit 27b9b3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Spacearr.Changelog.Generator/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Autofac;
using Spacearr.Common.Services.Interfaces;
using System;
using System.Linq;
using System.Threading.Tasks;

namespace Spacearr.Changelog.Generator
Expand All @@ -15,7 +16,7 @@ public static async Task Main(string[] args)
Console.WriteLine("Too many arguments supplied, supply only the 'GitHub Owner', 'GitHub Repo', 'Directory Of Clone', 'GitHub Token'");
Console.ForegroundColor = ConsoleColor.White;
}
else if (string.IsNullOrWhiteSpace(args[0]) || string.IsNullOrWhiteSpace(args[1]) || string.IsNullOrWhiteSpace(args[2]) || string.IsNullOrWhiteSpace(args[3]) || string.IsNullOrWhiteSpace(args[4]))
else if (args.Any(string.IsNullOrWhiteSpace))
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("One of the arguments is blank");
Expand Down

0 comments on commit 27b9b3c

Please sign in to comment.