aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-07-13 19:29:36 -0500
committerJack Nagel2014-07-13 19:29:36 -0500
commitb7eca3769aaac380ed33869d23754dbb46da2864 (patch)
tree70c25ef3714e7dddcb037812b9cf3e87bd5afe73 /Library/Homebrew
parent35be8731c0aac9aca325ab97ace3636b00ae4774 (diff)
downloadhomebrew-b7eca3769aaac380ed33869d23754dbb46da2864.tar.bz2
Remove default value from bottle_suffix parameter
We always call this method with an argument, so we can simplify it.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/bottles.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb
index e9ee8c5da..2a2610759 100644
--- a/Library/Homebrew/bottles.rb
+++ b/Library/Homebrew/bottles.rb
@@ -25,8 +25,8 @@ def bottle_file_outdated? f, file
bottle_ext && bottle_url_ext && bottle_ext != bottle_url_ext
end
-def bottle_suffix revision=nil
- revision = revision.to_i > 0 ? ".#{revision}" : ""
+def bottle_suffix revision
+ revision = revision > 0 ? ".#{revision}" : ""
".bottle#{revision}.tar.gz"
end