From 2a99dc8b38eebdaee996bd3e1945c418657987fd Mon Sep 17 00:00:00 2001 From: vrana Date: Fri, 1 Jun 2012 23:33:58 -0700 Subject: [PATCH] Remove unused variable --- src/workflow/ArcanistLintWorkflow.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/workflow/ArcanistLintWorkflow.php b/src/workflow/ArcanistLintWorkflow.php index 96ed2109..2504e7ba 100644 --- a/src/workflow/ArcanistLintWorkflow.php +++ b/src/workflow/ArcanistLintWorkflow.php @@ -264,8 +264,6 @@ EOTEXT if ($apply_patches && $result->isPatchable()) { $patcher = ArcanistLintPatcher::newFromArcanistLintResult($result); - $old = $patcher->getUnmodifiedFileContent(); - $new = $patcher->getModifiedFileContent(); if ($prompt_patches && !($result_all_autofix && !$prompt_autofix_patches)) { @@ -274,6 +272,7 @@ EOTEXT $old_file = '/dev/null'; } $new_file = new TempFile(); + $new = $patcher->getModifiedFileContent(); Filesystem::writeFile($new_file, $new); // TODO: Improve the behavior here, make it more like -- 2.43.0