Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
build_metadata.rb - fix 'warning: instance variable @git_commit_sha n…
Browse files Browse the repository at this point in the history
…ot initialized'
  • Loading branch information
MSP-Greg committed Jul 16, 2019
1 parent 33892e1 commit 37a1eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/build_metadata.rb
Expand Up @@ -23,7 +23,7 @@ def self.built_at

# The SHA for the git commit the bundler gem was built from.
def self.git_commit_sha
return @git_commit_sha if @git_commit_sha
return @git_commit_sha if instance_variable_defined? :@git_commit_sha

# If Bundler has been installed without its .git directory and without a
# commit instance variable then we can't determine its commits SHA.
Expand Down

0 comments on commit 37a1eec

Please sign in to comment.