Refactor redundant null check in the 'brand' variable assignment

This commit is contained in:
Sultan Soltanov 2023-02-23 13:36:46 +05:00
parent 286971e60c
commit 0654a2966a
No known key found for this signature in database
GPG Key ID: F2476AD2A719780D

View File

@ -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