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

Initialize variable in lint patch output

This commit is contained in:
vrana 2013-03-08 15:25:33 -08:00
parent c4773c87ba
commit 955bfb5581

View file

@ -90,6 +90,7 @@ final class ArcanistLintConsoleRenderer extends ArcanistLintRenderer {
$text = $message->getOriginalText();
$start = $message->getChar() - 1;
$patch = '';
// Refine original and replacement text to eliminate start and end in common
if ($message->isPatchable()) {
$patch = $message->getReplacementText();