Skip to content

Commit

Permalink
Fix Rubocop lints
Browse files Browse the repository at this point in the history
Summary: Internal linter didn't fire on this in D43891262, breaking OSS CI.

Differential Revision: D47217370

fbshipit-source-id: b506e7d22a34ae6be2468b768c95e554afe04483
  • Loading branch information
dafyddcrosby authored and facebook-github-bot committed Jul 4, 2023
1 parent f933c45 commit 7cbfb03
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions cookbooks/fb_bookworm/files/default/bookworm/bookworm.rb
Expand Up @@ -227,12 +227,12 @@ def generate_report

def load_classes_for_report
@report_src_dirs.each do |d|
begin
Bookworm.load_report_class @report_name, :dir => d
break
rescue Bookworm::ClassLoadError
# puts "Unable to load report #{report_name}, take a look at bookworm --list-reports\n\n"
end

Bookworm.load_report_class @report_name, :dir => d
break
rescue Bookworm::ClassLoadError
# puts "Unable to load report #{report_name}, take a look at bookworm --list-reports\n\n"

end
unless Bookworm::Reports.const_defined?(@report_name.to_sym)
cli_fail "Unable to load report #{@report_name}, take a look at bookworm --list-reports"
Expand All @@ -245,12 +245,12 @@ def load_classes_for_report
@rules = Bookworm.get_report_rules(@report_name)
@rules.each do |rule|
@rule_src_dirs.each do |d|
begin
Bookworm.load_rule_class rule, :dir => d
break
rescue Bookworm::ClassLoadError
# puts "Unable to load rule #{rule}, take a look at bookworm --list-rules\n\n"
end

Bookworm.load_rule_class rule, :dir => d
break
rescue Bookworm::ClassLoadError
# puts "Unable to load rule #{rule}, take a look at bookworm --list-rules\n\n"

end
unless Bookworm::InferRules.const_defined?(rule.to_sym)
cli_fail "Unable to load rule #{rule}, take a look at bookworm --list-rules"
Expand Down

0 comments on commit 7cbfb03

Please sign in to comment.