From 0654a2966ade94a18ba2973a2ce16800248f443d Mon Sep 17 00:00:00 2001 From: Sultan Soltanov Date: Thu, 23 Feb 2023 13:36:46 +0500 Subject: [PATCH] Refactor redundant null check in the 'brand' variable assignment --- src/Web/WebMVC/Infrastructure/API.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Web/WebMVC/Infrastructure/API.cs b/src/Web/WebMVC/Infrastructure/API.cs index 6e5ca68a2..5519ab7fd 100644 --- a/src/Web/WebMVC/Infrastructure/API.cs +++ b/src/Web/WebMVC/Infrastructure/API.cs @@ -61,7 +61,7 @@ public static class API } else if (brand.HasValue) { - var brandQs = (brand.HasValue) ? brand.Value.ToString() : string.Empty; + var brandQs = brand.Value.ToString(); filterQs = $"/type/all/brand/{brandQs}"; } else