Skip to content

Commit b1f5c11

Browse files
authored
ruby : Update uri.rb (#3016)
Bugfix ... without this Pathname the "/" operator wouldn't work and will throw an error
1 parent ada745f commit b1f5c11

File tree

1 file changed

+1
-1
lines changed
  • bindings/ruby/lib/whisper/model

1 file changed

+1
-1
lines changed

bindings/ruby/lib/whisper/model/uri.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def base_cache_dir
3434
when /darwin/
3535
Pathname(Dir.home)/"Library/Caches"
3636
else
37-
ENV.key?("XDG_CACHE_HOME") ? ENV["XDG_CACHE_HOME"] : Pathname(Dir.home)/".cache"
37+
ENV.key?("XDG_CACHE_HOME") ? Pathname(ENV["XDG_CACHE_HOME"]) : Pathname(Dir.home)/".cache"
3838
end
3939
base/"whisper.cpp"
4040
end

0 commit comments

Comments
 (0)