From 272cb4db26fb896ac175507c4698e8d715b9c93c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 13 Jul 2014 19:29:36 -0500 Subject: [PATCH] Remove default value from bottle_suffix parameter We always call this method with an argument, so we can simplify it. --- Library/Homebrew/bottles.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index e9ee8c5da7..2a26107591 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