Skip to content

Commit

Permalink
remove Debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Jul 8, 2022
1 parent 0bead7f commit 7b44380
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions src/AvantiPoint.Nuke.Maui/CI/CIBuildAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,15 @@ public override ConfigurationEntity GetConfiguration(NukeBuild build, IReadOnlyC
.Where(x => !x.StartsWith("--"))
.Distinct();

try
targetNames.ForEach(x =>
{
targetNames.ForEach(x =>
{
x.NotNullOrEmpty("The job name cannot be null or empty.");
Assert.True(executableTargets.Select(_ => _.Name).Contains(x),
$"The Target '{x}' does not exist");
});
x.NotNullOrEmpty("The job name cannot be null or empty.");
Assert.True(executableTargets.Select(_ => _.Name).Contains(x),
$"The Target '{x}' does not exist");
});

var targets = executableTargets.Where(x => targetNames.Contains(x.Name));
return BuildConfiguration(build, targets);
}
catch (Exception ex)
{
if (System.Diagnostics.Debugger.IsAttached)
System.Diagnostics.Debugger.Break();
else
System.Diagnostics.Debugger.Launch();
Log.Error(ex.ToString());

throw;
}
var targets = executableTargets.Where(x => targetNames.Contains(x.Name));
return BuildConfiguration(build, targets);
}

protected abstract ConfigurationEntity BuildConfiguration(NukeBuild build, IEnumerable<ExecutableTarget> relevantTargets);
Expand Down

0 comments on commit 7b44380

Please sign in to comment.