Go to http if def exists on def server

pull/833/head
Qstick 2 years ago committed by GitHub
parent dab4500b16
commit 94ef3ea88f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -204,7 +204,7 @@ namespace NzbDrone.Core.IndexerVersions
var dbDefs = _versionService.All();
//Check to ensure it's in versioned defs before we go to web
if (dbDefs.Count > 0 && dbDefs.Any(x => x.File == fileKey))
if (dbDefs.Count > 0 && !dbDefs.Any(x => x.File == fileKey))
{
throw new ArgumentNullException(nameof(fileKey));
}

Loading…
Cancel
Save