Skip to content
Snippets Groups Projects
Commit 4291476f authored by Alyssa Ross's avatar Alyssa Ross
Browse files

man: remove an unnecessary `else`

`odie` causes the process to exit immediately, so there's no need for the
`regenerate_man_pages` call to be conditional.
parent 2c1fbe16
No related branches found
No related tags found
No related merge requests found
......@@ -23,10 +23,10 @@ module Homebrew
if ARGV.flag? "--link"
odie "`brew man --link` is now done automatically by `brew update`."
else
regenerate_man_pages
end
regenerate_man_pages
if system "git", "-C", HOMEBREW_REPOSITORY, "diff", "--quiet", "docs/brew.1.html", "manpages"
puts "No changes to manpage output detected."
elsif ARGV.include?("--fail-if-changed")
......
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