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.
This commit is contained in:
Alyssa Ross 2017-01-23 18:48:51 +00:00
parent 2c1fbe1693
commit 4291476fa3

View File

@ -23,10 +23,10 @@ module Homebrew
if ARGV.flag? "--link" if ARGV.flag? "--link"
odie "`brew man --link` is now done automatically by `brew update`." odie "`brew man --link` is now done automatically by `brew update`."
else
regenerate_man_pages
end end
regenerate_man_pages
if system "git", "-C", HOMEBREW_REPOSITORY, "diff", "--quiet", "docs/brew.1.html", "manpages" if system "git", "-C", HOMEBREW_REPOSITORY, "diff", "--quiet", "docs/brew.1.html", "manpages"
puts "No changes to manpage output detected." puts "No changes to manpage output detected."
elsif ARGV.include?("--fail-if-changed") elsif ARGV.include?("--fail-if-changed")