lib/bootsnap/compile_cache/json.rb in bootsnap-1.16.0 vs lib/bootsnap/compile_cache/json.rb in bootsnap-1.17.0
- old
+ new
@@ -72,19 +72,15 @@
if (kwargs = args.first)
return super unless kwargs.is_a?(Hash)
return super unless (kwargs.keys - ::Bootsnap::CompileCache::JSON.supported_options).empty?
end
- begin
- ::Bootsnap::CompileCache::Native.fetch(
- Bootsnap::CompileCache::JSON.cache_dir,
- File.realpath(path),
- ::Bootsnap::CompileCache::JSON,
- kwargs,
- )
- rescue Errno::EACCES
- ::Bootsnap::CompileCache.permission_error(path)
- end
+ ::Bootsnap::CompileCache::Native.fetch(
+ Bootsnap::CompileCache::JSON.cache_dir,
+ File.realpath(path),
+ ::Bootsnap::CompileCache::JSON,
+ kwargs,
+ )
end
ruby2_keywords :load_file if respond_to?(:ruby2_keywords, true)
end
end