aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.MediaEncoding/Encoder
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2019-01-29 14:45:07 +0100
committerGitHub <noreply@github.com>2019-01-29 14:45:07 +0100
commit91e99effc9b8dd1e34d4e53e732fe71f1423006c (patch)
treedf7d15c69dbcc4fe514cb49f6b7fec4edca6daa0 /MediaBrowser.MediaEncoding/Encoder
parent838541b82530ce556cd5ab005ba59359f83c9509 (diff)
Apply suggestions from code review for flipped conditions.
Co-Authored-By: EraYaN <EraYaN@users.noreply.github.com>
Diffstat (limited to 'MediaBrowser.MediaEncoding/Encoder')
-rw-r--r--MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs
index 7bcb1e38a..54344424d 100644
--- a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs
+++ b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs
@@ -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();
}