summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMSP-Greg <MSP-Greg@users.noreply.github.com>2019-07-16 11:39:24 -0500
committerMSP-Greg <MSP-Greg@users.noreply.github.com>2019-07-16 11:39:24 -0500
commit37a1eec8c84ea0a446201cd268bab8d93bc429e1 (patch)
treede0b1a800212d35adedcf938f27c6443fbfb2b46
parent33892e1ed2a3d58716563062a1a4e80dfc9fcfd5 (diff)
downloadbundler-37a1eec8c84ea0a446201cd268bab8d93bc429e1.tar.gz
build_metadata.rb - fix 'warning: instance variable @git_commit_sha not initialized'
-rw-r--r--lib/bundler/build_metadata.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/build_metadata.rb b/lib/bundler/build_metadata.rb
index 33f91e9162..4dfad2f8d8 100644
--- a/lib/bundler/build_metadata.rb
+++ b/lib/bundler/build_metadata.rb
@@ -23,7 +23,7 @@ module Bundler
# 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.