startup/bootsnap: improve syntax.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
This commit is contained in:
Mike McQuaid 2024-04-29 17:42:34 +01:00 committed by GitHub
parent c55a5e30dd
commit 279f42a39c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,8 +13,8 @@ end
if homebrew_bootsnap_enabled if homebrew_bootsnap_enabled
begin begin
require "bootsnap" require "bootsnap"
rescue LoadError => e rescue LoadError
raise e if ENV["HOMEBREW_BOOTSNAP_RETRY"] raise if ENV["HOMEBREW_BOOTSNAP_RETRY"]
Homebrew.install_bundler_gems!(groups: ["bootsnap"], only_warn_on_failure: true) Homebrew.install_bundler_gems!(groups: ["bootsnap"], only_warn_on_failure: true)