From 6886cda4c1525d91a20cbdc923534a026c093e1f Mon Sep 17 00:00:00 2001 From: alireza Date: Wed, 23 Oct 2024 10:39:04 +0330 Subject: [PATCH] fix --- .../Core/DependencyInjection/RefitDependencyInjection.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mohaymen.GiteaClient/Core/DependencyInjection/RefitDependencyInjection.cs b/Mohaymen.GiteaClient/Core/DependencyInjection/RefitDependencyInjection.cs index 09e1178..ff0bf4d 100644 --- a/Mohaymen.GiteaClient/Core/DependencyInjection/RefitDependencyInjection.cs +++ b/Mohaymen.GiteaClient/Core/DependencyInjection/RefitDependencyInjection.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Net; using System.Net.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; @@ -36,7 +37,7 @@ public static IServiceCollection AddRefitClientTypes(this IServiceCollection ser { return null; } - if (httpResponseMessage.StatusCode == System.Net.HttpStatusCode.Conflict) + if (httpResponseMessage.StatusCode == HttpStatusCode.Conflict) { throw new RepositoryAlreadyExistsException(await httpResponseMessage.Content.ReadAsStringAsync()); }