core: remove string extensions in favor of explicit conversion (#7839)

This commit is contained in:
Cory
2020-03-24 21:39:38 -05:00
committed by GitHub
parent c18c0d574f
commit d7dddf6009
11 changed files with 27 additions and 37 deletions

View File

@@ -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)");