Skip to content

Commit

Permalink
CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Cerqueira committed Nov 10, 2023
1 parent d876a35 commit 459f990
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Src/Control/internal/PipeAndFilterControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,20 +298,14 @@ private async Task ExecutePipesAfter()
//execute after handler
if (!IsEnd)
{
string? aliasprev = null;
if (!string.IsNullOrEmpty(_prevPipe))
{
aliasprev = _parameters.IdToAlias[_prevPipe];
};
string? aliascur = _parameters.IdToAlias[_currentPipe!];
var evt = new EventPipe<T>(
_cid,
_logger,
ChangeContract!,
_savedvalues.ToImmutableDictionary(),
_currentPipe!,
_parameters.Pipes[_currentPipeIndex].HandlerAfter!.Id,
aliascur,
_parameters.IdToAlias[_currentPipe!],
_parameters.IdToAlias[_parameters.Pipes[_currentPipeIndex].HandlerAfter!.Id]);
await _parameters.Pipes[_currentPipeIndex].HandlerAfter!.Handler(evt, _pipects!.Token);
sta = HandlerStatus.Completed;
Expand Down

0 comments on commit 459f990

Please sign in to comment.