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

@@ -159,7 +159,7 @@ namespace Jackett.Common.Services
var omdbApiKey = serverConfig.OmdbApiKey;
IFallbackStrategyProvider fallbackStrategyProvider = null;
IResultFilterProvider resultFilterProvider = null;
if (!omdbApiKey.IsNullOrEmptyOrWhitespace())
if (!string.IsNullOrWhiteSpace(omdbApiKey))
{
var imdbResolver = new OmdbResolver(webClient, omdbApiKey.ToNonNull(), serverConfig.OmdbApiUrl);
fallbackStrategyProvider = new ImdbFallbackStrategyProvider(imdbResolver);