From: vrana Date: Sat, 2 Jun 2012 06:33:58 +0000 (-0700) Subject: Remove unused variable X-Git-Tag: conduit-6~274 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=2a99dc8b38eebdaee996bd3e1945c418657987fd;p=arcanist.git Remove unused variable --- 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