Skip to content

Commit b1490dd

Browse files
committed
back to using Pathname#read
1 parent cbae980 commit b1490dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/generator/json_index.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def generate_gzipped
170170
outfile = out_dir + "#{search_index_file}.gz"
171171

172172
debug_msg "Reading the JSON index file from %s" % search_index_file
173-
search_index = open(search_index_file, 'r:utf-8', &:read)
173+
search_index = search_index_file.read(mode: 'r:utf-8')
174174

175175
debug_msg "Writing gzipped search index to %s" % outfile
176176

0 commit comments

Comments
 (0)