From cf953d43eac3fece3aeba97d67d0ba2f4b23706f Mon Sep 17 00:00:00 2001 From: eidheim Date: Sun, 13 May 2018 13:18:38 +0200 Subject: [PATCH] Fixed unused variable warning --- src/source_language_protocol.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/source_language_protocol.cc b/src/source_language_protocol.cc index 3712bdd..9c32dcd 100644 --- a/src/source_language_protocol.cc +++ b/src/source_language_protocol.cc @@ -335,8 +335,8 @@ Source::LanguageProtocolView::LanguageProtocolView(const boost::filesystem::path auto build=Project::Build::create(file_path); if(auto npm_build=dynamic_cast(build.get())) { boost::system::error_code ec; - if(!build->project_path.empty() && boost::filesystem::exists(build->project_path/".flowconfig", ec)) { - auto executable=build->project_path/"node_modules"/".bin"/"flow"; // It is recommended to use Flow binary installed in project, despite the security risk of doing so... + if(!npm_build->project_path.empty() && boost::filesystem::exists(npm_build->project_path/".flowconfig", ec)) { + auto executable=npm_build->project_path/"node_modules"/".bin"/"flow"; // It is recommended to use Flow binary installed in project, despite the security risk of doing so... if(boost::filesystem::exists(executable, ec)) flow_coverage_executable=executable; else