Skip to content

Commit 93ddde9

Browse files
committed
Autocorrect new FetchEnvVar & Style/EnvHome cops
1 parent 7cefbf4 commit 93ddde9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.irbrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ ARGV.concat ['--readline', '--prompt-mode', 'simple']
77
IRB.conf[:SAVE_HISTORY] = 500
88

99
# Store results in home directory with specified file name
10-
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
10+
IRB.conf[:HISTORY_FILE] = "#{Dir.home}/.irb_history"

bin/bundle

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ m = Module.new do
1818
end
1919

2020
def env_var_version
21-
ENV['BUNDLER_VERSION']
21+
ENV.fetch('BUNDLER_VERSION', nil)
2222
end
2323

2424
def cli_arg_version
@@ -38,7 +38,7 @@ m = Module.new do
3838
end
3939

4040
def gemfile
41-
gemfile = ENV['BUNDLE_GEMFILE']
41+
gemfile = ENV.fetch('BUNDLE_GEMFILE', nil)
4242
return gemfile if gemfile && !gemfile.empty?
4343

4444
File.expand_path('../Gemfile', __dir__)

config/initializers/sentry.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Sentry.init do |config|
2-
config.dsn = ENV['HACKWEEK_SENTRY_DSN']
2+
config.dsn = ENV.fetch('HACKWEEK_SENTRY_DSN', nil)
33
config.breadcrumbs_logger = [:active_support_logger]
44

55
# To activate performance monitoring, set one of these options.

0 commit comments

Comments
 (0)