From b618f455cebb04a8fb315b849e8f2d83b149b052 Mon Sep 17 00:00:00 2001 From: "ext.joao.veloso" Date: Fri, 27 Oct 2023 10:50:37 +0100 Subject: [PATCH] feat: changing endpoint and cleaning code --- .../RetryRequestHandlerBase.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/KafkaFlow.Retry.API/RetryRequestHandlerBase.cs b/src/KafkaFlow.Retry.API/RetryRequestHandlerBase.cs index acc7ef84..e2e64431 100644 --- a/src/KafkaFlow.Retry.API/RetryRequestHandlerBase.cs +++ b/src/KafkaFlow.Retry.API/RetryRequestHandlerBase.cs @@ -29,23 +29,15 @@ protected RetryRequestHandlerBase(string endpointPrefix, string resource) if (!string.IsNullOrEmpty(endpointPrefix)) { this.path = this.path - .ExtendResourcePath(endpointPrefix) - .ExtendResourcePath(RetryResource) - .ExtendResourcePath(resource); - - } - else - { - this.path = this.path - .ExtendResourcePath(RetryResource) - .ExtendResourcePath(resource); + .ExtendResourcePath(endpointPrefix); } + this.path = this.path + .ExtendResourcePath(RetryResource) + .ExtendResourcePath(resource); } - - public virtual async Task HandleAsync(HttpRequest request, HttpResponse response) { if (!this.CanHandle(request))