Skip to content

Commit

Permalink
feat: return early if ignore command
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Sep 5, 2023
1 parent 024f68a commit 758ae29
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public CommandResponse Handle(RunWithSubjectContainerCommand command)

var subjectContainerId = subjectContainer.Id;

// Return early if any of the commands is an ignore command.
if (commandStrings.Any(command => command == 'ignore'))
return CommandResponse.Ok;

// Invoke commands in sequence.
foreach (var commandString in commandStrings)
{
Expand Down

0 comments on commit 758ae29

Please sign in to comment.