From: epriestley Date: Thu, 22 May 2014 17:36:31 +0000 (-0700) Subject: Fix "arc linters" if no engine is built or configured X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f64dee022e926bd67cf902ec8207149ffab4fec5;p=arcanist.git Fix "arc linters" if no engine is built or configured Summary: `$engine` will be undefined here. This was just copy/paste derp, combined with me accidentally having an `.arclint` file in a place I didn't expect to have one when I tried to test this. Test Plan: Ran `arc linters` in a totally bare, non-.arclint-having working copy Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D9255 --- diff --git a/src/workflow/ArcanistLintersWorkflow.php b/src/workflow/ArcanistLintersWorkflow.php index a2dc604c..7f50cf10 100644 --- a/src/workflow/ArcanistLintersWorkflow.php +++ b/src/workflow/ArcanistLintersWorkflow.php @@ -43,7 +43,7 @@ EOTEXT try { $built = $this->newLintEngine()->buildLinters(); } catch (ArcanistNoEngineException $ex) { - $built = $engine->buildLinters(); + $built = array(); } // Note that an engine can emit multiple linters of the same class to run