From 009019f2596de08c488588fd2c67a423f9fe92bf Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 9 Oct 2016 10:47:43 +0200 Subject: Makefiles: Extract identical code from condition --- Source/cmLocalUnixMakefileGenerator3.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index eebab68..02eef59 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -999,12 +999,9 @@ void cmLocalUnixMakefileGenerator3::AppendCustomCommand( if (workingDir.empty()) { output = this->MaybeConvertToRelativePath( this->GetCurrentBinaryDirectory(), output); - output = - this->ConvertToOutputFormat(output, cmOutputConverter::SHELL); - } else { - output = - this->ConvertToOutputFormat(output, cmOutputConverter::SHELL); } + output = + this->ConvertToOutputFormat(output, cmOutputConverter::SHELL); } vars.Output = output.c_str(); -- cgit v0.12