Skip to content
Snippets Groups Projects
Commit af59951c authored by hyuraku's avatar hyuraku
Browse files

fix style

parent 1afd271a
No related branches found
No related tags found
No related merge requests found
......@@ -377,8 +377,10 @@ module Homebrew
end
if args.category.present?
raise UsageError, "category must be one of #{valid_categories.join(", ")}" unless valid_categories.include?(args.category)
next if args.category.gsub('-','_') != category
unless valid_categories.include?(args.category)
raise UsageError, "category must be one of #{valid_categories.join(", ")}"
end
next if args.category.tr("-", "_") != category
end
analytics_table(category, days, results)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment