diff options
author | Sergey Alekseev <sergey@asoft.co> | 2019-07-23 20:17:59 +0000 |
---|---|---|
committer | Sergey Alekseev <sergey@asoft.co> | 2019-07-23 20:17:59 +0000 |
commit | f30b1d61d9adeaeb39febfd99ec0461b9a2251ea (patch) | |
tree | 9ff789963518b29ee5a0d946e5ca0a3f0e78f256 /config | |
parent | d892e80bf0161b535389c91ccb53539e4f08d790 (diff) | |
download | gitlab-ce-f30b1d61d9adeaeb39febfd99ec0461b9a2251ea.tar.gz |
Speed up boot time
by removing an unused `begin ... rescue ... end` block. The block is no longer necessary after moving the bootsnap gem to the :default group in eedf735574b9f6c7c6c843943dd946ce84238236.
Diffstat (limited to 'config')
-rw-r--r-- | config/boot.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/config/boot.rb b/config/boot.rb index 2eacff868eb..da4e6b7290c 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -2,8 +2,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) # Set up gems listed in the Gemfile. require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) -begin - require 'bootsnap/setup' if ENV['RAILS_ENV'] != 'production' || %w(1 yes true).include?(ENV['ENABLE_BOOTSNAP']) -rescue LoadError - # bootsnap is an optional dependency, so if we don't have it, it's fine -end +require 'bootsnap/setup' if ENV['RAILS_ENV'] != 'production' || %w(1 yes true).include?(ENV['ENABLE_BOOTSNAP']) |