summaryrefslogtreecommitdiff
path: root/lib/rubygems/defaults.rb
diff options
context:
space:
mode:
authorJosef Šimánek <josef.simanek@gmail.com>2023-02-28 05:38:47 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-07 16:52:28 +0900
commitdc33d32f12689dc5f29ba7bf7bb0c870647ca776 (patch)
treecd8ccd193a3cb4b4e994e23ca5cf2fe2ba28b673 /lib/rubygems/defaults.rb
parent93f0749a64ae4511bd38358dee238140489526b5 (diff)
Use proper memoized var name for Gem.state_home.
Diffstat (limited to 'lib/rubygems/defaults.rb')
-rw-r--r--lib/rubygems/defaults.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb
index 4806ea6469..b186375f69 100644
--- a/lib/rubygems/defaults.rb
+++ b/lib/rubygems/defaults.rb
@@ -158,7 +158,7 @@ module Gem
# The path to standard location of the user's state directory.
def self.state_home
- @data_home ||= (ENV["XDG_STATE_HOME"] || File.join(Gem.user_home, ".local", "state"))
+ @state_home ||= (ENV["XDG_STATE_HOME"] || File.join(Gem.user_home, ".local", "state"))
end
##