Apply suggestions from code review for flipped conditions.

Co-Authored-By: EraYaN <EraYaN@users.noreply.github.com>
This commit is contained in:
Vasily 2019-01-29 14:45:07 +01:00 committed by GitHub
parent 838541b825
commit 91e99effc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -214,7 +214,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
throw new ArgumentNullException(nameof(path));
}
if (!File.Exists(path) && Directory.Exists(path))
if (!File.Exists(path) && !Directory.Exists(path))
{
throw new ResourceNotFoundException();
}