]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix "arc linters" if no engine is built or configured
authorepriestley <git@epriestley.com>
Thu, 22 May 2014 17:36:31 +0000 (10:36 -0700)
committerepriestley <git@epriestley.com>
Thu, 22 May 2014 17:36:31 +0000 (10:36 -0700)
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

index a2dc604c1b730f02ae45cedeb105c6365d2e7ebc..7f50cf10f26b933487ba033ecd00d9953a900fed 100644 (file)
@@ -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