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

View file

@ -144,18 +144,14 @@ namespace AffdexMe
{ {
ShowExceptionAndShutDown("AFFDEX_DATA_DIR environment variable (Classifier Data Directory) is not set"); 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) if (!directoryInfo.Exists)
{ {
ShowExceptionAndShutDown("AFFDEX_DATA_DIR (Classifier Data Directory) is set to an invalid folder location"); ShowExceptionAndShutDown("AFFDEX_DATA_DIR (Classifier Data Directory) is set to an invalid folder location");
} }
return classifierPath; return affdexClassifierDir;
} }
private String GetAffdexLicense() private String GetAffdexLicense()