diff options
| author | Alyssa Ross | 2017-01-23 18:48:51 +0000 |
|---|---|---|
| committer | Alyssa Ross | 2017-01-23 21:16:49 +0000 |
| commit | 4291476fa3042e76b3acfde7836affaea4557a02 (patch) | |
| tree | 812c023599ab86292408955aea0da0b822885f5e /Library/Homebrew/dev-cmd/man.rb | |
| parent | 2c1fbe16931bd366d33d4419c59fcc8ada9cfe7d (diff) | |
| download | brew-4291476fa3042e76b3acfde7836affaea4557a02.tar.bz2 | |
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.
Diffstat (limited to 'Library/Homebrew/dev-cmd/man.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/man.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/man.rb b/Library/Homebrew/dev-cmd/man.rb index 64c970453..581db38ca 100644 --- a/Library/Homebrew/dev-cmd/man.rb +++ b/Library/Homebrew/dev-cmd/man.rb @@ -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") |
