diff options
| author | Mike McQuaid | 2016-09-11 17:41:51 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-11 19:14:55 +0100 |
| commit | bba6a59c0c491eab7fdf3141a9810f86a2ed9ae0 (patch) | |
| tree | eb2220704d63a8258db4d44ead5cd9b85b120622 /Library | |
| parent | 9b5c45a7df6a9a170389d6045bf06803fe4bc78b (diff) | |
| download | brew-bba6a59c0c491eab7fdf3141a9810f86a2ed9ae0.tar.bz2 | |
dev-cmd/bump-formula-pr: fix Rubocop warnings.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dev-cmd/bump-formula-pr.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 9f05dfb8d..38c7559fb 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -101,7 +101,7 @@ module Homebrew old_formula_version = formula_version(formula, requested_spec) replacement_pairs = [] - if requested_spec == :stable && formula.revision != 0 + if requested_spec == :stable && formula.revision.nonzero? replacement_pairs << [/^ revision \d+\n(\n( head "))?/m, "\\2"] end |
