[Lint] Remove misleading error when running linters only

Reviewed By: jvillard

Differential Revision: D8821369

fbshipit-source-id: e35d08c8d
master
Katie Ots 6 years ago committed by Facebook Github Bot
parent 4d1abb0eeb
commit 9670d3c700

@ -375,10 +375,10 @@ let analyze_and_report ?suppress_console_report ~changed_files mode =
(* else rely on the command line value *) Config.merge
in
if should_merge then MergeCapture.merge_captured_targets () ;
if should_analyze || should_report then (
if SourceFiles.is_empty () then error_nothing_to_analyze mode
else if should_analyze then execute_analyze ~changed_files ;
if should_report && Config.report then report ?suppress_console:suppress_console_report () )
if should_analyze then
if SourceFiles.is_empty () && Config.capture then error_nothing_to_analyze mode
else execute_analyze ~changed_files ;
if should_report && Config.report then report ?suppress_console:suppress_console_report ()
(** as the Config.fail_on_bug flag mandates, exit with error when an issue is reported *)

Loading…
Cancel
Save