Skip to content

Commit

Permalink
Update cache.rb (#704)
Browse files Browse the repository at this point in the history
Fix for `ENV['SOLARGRAPH_CACHE']` not being respected after #664
  • Loading branch information
mintuhouse authored Feb 15, 2024
1 parent 7be6ed2 commit bef319e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solargraph/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def base_dir
# The directory is not stored in a variable so it can be overridden
# in specs.
ENV['SOLARGRAPH_CACHE'] ||
ENV['XDG_CACHE_HOME'] ? File.join(ENV['XDG_CACHE_HOME'], 'solargraph') :
(ENV['XDG_CACHE_HOME'] ? File.join(ENV['XDG_CACHE_HOME'], 'solargraph') : nil) ||
File.join(Dir.home, '.cache', 'solargraph')
end

Expand Down

0 comments on commit bef319e

Please sign in to comment.