From f64dee022e926bd67cf902ec8207149ffab4fec5 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 22 May 2014 10:36:31 -0700 Subject: [PATCH] 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 --- src/workflow/ArcanistLintersWorkflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0