Browse Source

Makefiles: Extract identical code from condition

Stephen Kelly 9 years ago
parent
commit
009019f259
1 changed files with 2 additions and 5 deletions
  1. 2 5
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 2 - 5
Source/cmLocalUnixMakefileGenerator3.cxx

@@ -999,12 +999,9 @@ void cmLocalUnixMakefileGenerator3::AppendCustomCommand(
           if (workingDir.empty()) {
           if (workingDir.empty()) {
             output = this->MaybeConvertToRelativePath(
             output = this->MaybeConvertToRelativePath(
               this->GetCurrentBinaryDirectory(), output);
               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();
         vars.Output = output.c_str();