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:
parent
2c1fbe1693
commit
4291476fa3
@ -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")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user