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:
parent
644904736e
commit
272cb4db26
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user