diff options
author | MSP-Greg <MSP-Greg@users.noreply.github.com> | 2019-07-16 11:39:24 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:58 +0900 |
commit | 24062bd323ec9c5311bbf2c5f8f2822f15a38c62 (patch) | |
tree | 508b0e318bdb3fb86fd641362406e49efd4d22c7 | |
parent | 7b7caf9b556aa026c732403d7b18910ebc070123 (diff) | |
download | ruby-24062bd323ec9c5311bbf2c5f8f2822f15a38c62.tar.gz |
[bundler/bundler] build_metadata.rb - fix 'warning: instance variable @git_commit_sha not initialized'
https://github.com/bundler/bundler/commit/37a1eec8c8
-rw-r--r-- | lib/bundler/build_metadata.rb | 2 |
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. |