Switch to using string.IsNullOrEmpty on string and reverse ternary operator - slightly easier to read.

This commit is contained in:
amaitland
2015-04-22 09:34:55 +10:00
parent 7fd42e4e3d
commit 969b6944fe
+1 -1
View File
@@ -151,7 +151,7 @@ namespace CefSharp
foreach (var file in files)
{
var filePath = dir != null ? Path.Combine(dir, file) : file;
var filePath = string.IsNullOrEmpty(dir) ? file : Path.Combine(dir, file);
if (!File.Exists(filePath))
{
missingDependencies.Add(filePath);