1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-29 18:22:41 +01:00

Remove unused variable

This commit is contained in:
vrana 2012-06-01 23:33:58 -07:00
parent 1d9ffce1ec
commit 2a99dc8b38

View file

@ -264,8 +264,6 @@ EOTEXT
if ($apply_patches && $result->isPatchable()) { if ($apply_patches && $result->isPatchable()) {
$patcher = ArcanistLintPatcher::newFromArcanistLintResult($result); $patcher = ArcanistLintPatcher::newFromArcanistLintResult($result);
$old = $patcher->getUnmodifiedFileContent();
$new = $patcher->getModifiedFileContent();
if ($prompt_patches && if ($prompt_patches &&
!($result_all_autofix && !$prompt_autofix_patches)) { !($result_all_autofix && !$prompt_autofix_patches)) {
@ -274,6 +272,7 @@ EOTEXT
$old_file = '/dev/null'; $old_file = '/dev/null';
} }
$new_file = new TempFile(); $new_file = new TempFile();
$new = $patcher->getModifiedFileContent();
Filesystem::writeFile($new_file, $new); Filesystem::writeFile($new_file, $new);
// TODO: Improve the behavior here, make it more like // TODO: Improve the behavior here, make it more like