fix style
This commit is contained in:
parent
1afd271a13
commit
af59951c0e
@ -377,8 +377,10 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
if args.category.present?
|
if args.category.present?
|
||||||
raise UsageError, "category must be one of #{valid_categories.join(", ")}" unless valid_categories.include?(args.category)
|
unless valid_categories.include?(args.category)
|
||||||
next if args.category.gsub('-','_') != category
|
raise UsageError, "category must be one of #{valid_categories.join(", ")}"
|
||||||
|
end
|
||||||
|
next if args.category.tr("-", "_") != category
|
||||||
end
|
end
|
||||||
|
|
||||||
analytics_table(category, days, results)
|
analytics_table(category, days, results)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user