Skip to content

Commit

Permalink
don't break if a task does not have a manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Sep 1, 2023
1 parent 96e63b9 commit 3ce464a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plogon/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ static async Task Main(DirectoryInfo outputFolder, DirectoryInfo manifestFolder,
foreach (var task in tasks)
{
string? fancyCommit = null;
var url = task.Manifest!.Plugin.Repository.Replace(".git", string.Empty);
if (task.Manifest?.Plugin?.Commit != null)
var url = task.Manifest?.Plugin.Repository.Replace(".git", string.Empty);
if (task.Manifest?.Plugin.Commit != null && url != null)
{
fancyCommit = task.Manifest.Plugin.Commit.Length > 7
? task.Manifest.Plugin.Commit[..7]
Expand Down

0 comments on commit 3ce464a

Please sign in to comment.