From ef6c2298f59d22394cd323fa82a63cdeb958f79a Mon Sep 17 00:00:00 2001 From: "Chris Davies (MSTIC)" Date: Tue, 11 Dec 2018 22:42:59 +0000 Subject: [PATCH] Removed unnecessary check for errors --- YaraSharp/YaraSharp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YaraSharp/YaraSharp.cpp b/YaraSharp/YaraSharp.cpp index 9d03ac3..d1b47fc 100644 --- a/YaraSharp/YaraSharp.cpp +++ b/YaraSharp/YaraSharp.cpp @@ -13,7 +13,7 @@ namespace YaraSharp { CCompiler^ TestCompiler = gcnew CCompiler(ExternalVariables); - if (TestCompiler->AddFile(FilePathList[i]) || TestCompiler->GetErrors(false)->Count > 0) + if (TestCompiler->AddFile(FilePathList[i])) { if (CompilationErrors->ContainsKey(FilePathList[i])) {