fix compilation error caused in the previous commit

This commit is contained in:
Abdelrahman Mahmoud 2015-09-04 11:15:04 -04:00
parent 7ff285adcd
commit 3977f3b10b
1 changed files with 6 additions and 10 deletions

View File

@ -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()