Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eben-roux committed Aug 5, 2024
1 parent c445c69 commit ac35d45
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Shuttle.Core.Pipelines/Pipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ public IPipelineStage GetStage(string name)

var result = Stages.Find(stage => stage.Name.Equals(name, StringComparison.InvariantCultureIgnoreCase));

Guard.Against<IndexOutOfRangeException>(result == null,
string.Format(Resources.PipelineStageNotFound, name));
Guard.Against<IndexOutOfRangeException>(result == null, string.Format(Resources.PipelineStageNotFound, name));

return result;
}
Expand Down Expand Up @@ -310,8 +309,7 @@ private async Task RaiseEventAsync(IPipelineEvent @event, bool ignoreAbort, bool
}
catch (Exception ex)
{
throw new PipelineException(
string.Format(_raisingPipelineEvent, @event.Name, StageName, observer.GetObserverTypeName()), ex);
throw new PipelineException(string.Format(_raisingPipelineEvent, @event.Name, StageName, observer.GetObserverTypeName()), ex);
}

if (Aborted && !ignoreAbort)
Expand Down

0 comments on commit ac35d45

Please sign in to comment.