Merge pull request #1901 from alyssais/patch-1

man: remove an unnecessary `else`
This commit is contained in:
Mike McQuaid 2017-01-25 09:35:17 +00:00 committed by GitHub
commit 9293ca2cef

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")