aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-09-11 17:41:51 +0100
committerMike McQuaid2016-09-11 19:14:55 +0100
commitbba6a59c0c491eab7fdf3141a9810f86a2ed9ae0 (patch)
treeeb2220704d63a8258db4d44ead5cd9b85b120622 /Library
parent9b5c45a7df6a9a170389d6045bf06803fe4bc78b (diff)
downloadbrew-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.rb2
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