diff options
| author | Jack Nagel | 2014-07-19 20:58:47 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-19 20:58:47 -0500 |
| commit | b3030f6e1d6061995a30464fde05baf34140d45d (patch) | |
| tree | db8958a789d0e55f828a630bfd44e59da5ccdb38 /Library | |
| parent | 2975a7361a1457ffe448c2dcdf3ae8e11db02d4f (diff) | |
| download | homebrew-b3030f6e1d6061995a30464fde05baf34140d45d.tar.bz2 | |
Use if-else instead of postfix unless
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-pull.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-pull.rb b/Library/Contributions/cmd/brew-pull.rb index f6f17a211..965ff89fd 100755 --- a/Library/Contributions/cmd/brew-pull.rb +++ b/Library/Contributions/cmd/brew-pull.rb @@ -42,8 +42,11 @@ ARGV.named.each do |arg| end if ARGV.include? '--bottle' - raise 'No pull request detected!' unless issue - url = "https://github.com/BrewTestBot/homebrew/compare/homebrew:master...pr-#{issue}" + if issue + url = "https://github.com/BrewTestBot/homebrew/compare/homebrew:master...pr-#{issue}" + else + raise "No pull request detected!" + end end # GitHub provides commits'/pull-requests' raw patches using this URL. |
