From 459f990900bf63cfea55e6334bc8c8f558e06291 Mon Sep 17 00:00:00 2001 From: Fernando Cerqueira Date: Fri, 10 Nov 2023 19:21:13 -0300 Subject: [PATCH] CodeQL --- Src/Control/internal/PipeAndFilterControl.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Src/Control/internal/PipeAndFilterControl.cs b/Src/Control/internal/PipeAndFilterControl.cs index a638eee..fe10412 100644 --- a/Src/Control/internal/PipeAndFilterControl.cs +++ b/Src/Control/internal/PipeAndFilterControl.cs @@ -298,12 +298,6 @@ 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( _cid, _logger, @@ -311,7 +305,7 @@ private async Task ExecutePipesAfter() _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;