Skip to content

Commit

Permalink
Update MercyFork.ApiService/RepoSearchRangeBinder.cs
Browse files Browse the repository at this point in the history
Co-authored-by: ArmoryNode <[email protected]>
  • Loading branch information
theyo and ArmoryNode authored Oct 8, 2024
1 parent e2fc4a3 commit 772ccce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MercyFork.ApiService/RepoSearchRangeBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public Task BindModelAsync(ModelBindingContext bindingContext)

var query = bindingContext.HttpContext.Request.QueryString.Value;

if (query is null)
if (string.IsNullOrWhiteSpace(query))
{
bindingContext.Result = ModelBindingResult.Failed();
return Task.CompletedTask;
Expand Down

0 comments on commit 772ccce

Please sign in to comment.