From acebeab9cb2f44658384f56ffea9c9dc6d945e90 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Wed, 5 May 2021 08:27:58 -0400 Subject: [PATCH] bottle: improve style of rebuild fallback Co-authored-by: Mike McQuaid --- Library/Homebrew/dev-cmd/bottle.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index c06effa99b..f7e3883bad 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -339,10 +339,8 @@ module Homebrew else 0 end - end + end || 0 end - # FormulaVersions#formula_at_revision returns nil for new formulae - rebuild ||= 0 filename = Bottle::Filename.create(f, bottle_tag.to_sym, rebuild) local_filename = filename.to_s