Skip to content

Commit

Permalink
Be explicit with providing nil
Browse files Browse the repository at this point in the history
  • Loading branch information
arielkirkwood committed Mar 17, 2024
1 parent 3fb07c8 commit 3cb85d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/bundle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ m = Module.new do
end

def env_var_version
ENV.fetch('BUNDLER_VERSION')
ENV.fetch('BUNDLER_VERSION', nil)
end

def cli_arg_version
Expand All @@ -37,7 +37,7 @@ m = Module.new do
end

def gemfile
gemfile = ENV.fetch('BUNDLE_GEMFILE')
gemfile = ENV.fetch('BUNDLE_GEMFILE', nil)
return gemfile if gemfile && !gemfile.empty?

File.expand_path('../Gemfile', __dir__)
Expand Down

0 comments on commit 3cb85d3

Please sign in to comment.