From 3977f3b10b7b8349d51eab4d9912081357ad9ab2 Mon Sep 17 00:00:00 2001 From: Abdelrahman Mahmoud Date: Fri, 4 Sep 2015 11:15:04 -0400 Subject: [PATCH] fix compilation error caused in the previous commit --- AffdexMe/MainWindow.xaml.cs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/AffdexMe/MainWindow.xaml.cs b/AffdexMe/MainWindow.xaml.cs index 0ec7af0..a51392e 100644 --- a/AffdexMe/MainWindow.xaml.cs +++ b/AffdexMe/MainWindow.xaml.cs @@ -143,19 +143,15 @@ namespace AffdexMe if (String.IsNullOrEmpty(affdexClassifierDir)) { ShowExceptionAndShutDown("AFFDEX_DATA_DIR environment variable (Classifier Data Directory) is not set"); - } - else - { - classifierPath = affdexClassifierDir; - } - - DirectoryInfo directoryInfo = new DirectoryInfo(classifierPath); + } + + DirectoryInfo directoryInfo = new DirectoryInfo(affdexClassifierDir); if (!directoryInfo.Exists) { ShowExceptionAndShutDown("AFFDEX_DATA_DIR (Classifier Data Directory) is set to an invalid folder location"); - } - - return classifierPath; + } + + return affdexClassifierDir; } private String GetAffdexLicense()