Remove default value from bottle_suffix parameter

We always call this method with an argument, so we can simplify it.
This commit is contained in:
Jack Nagel 2014-07-13 19:29:36 -05:00
parent 644904736e
commit 272cb4db26

View File

@ -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