mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
core: remove string extensions in favor of explicit conversion (#7839)
This commit is contained in:
@@ -71,7 +71,7 @@ namespace Jackett.Server.Controllers
|
||||
}
|
||||
|
||||
var indexerId = parameters["indexerId"] as string;
|
||||
if (indexerId.IsNullOrEmptyOrWhitespace())
|
||||
if (string.IsNullOrWhiteSpace(indexerId))
|
||||
{
|
||||
indexerController.CurrentIndexer = null;
|
||||
context.Result = ResultsController.GetErrorActionResult(context.RouteData, HttpStatusCode.NotFound, 201, "Indexer is not specified (empty value)");
|
||||
|
Reference in New Issue
Block a user