Skip to content

Commit 8d1375d

Browse files
committed
Use keyword arguments to fix type problems
1 parent 6bd62dd commit 8d1375d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/bitclust/subcommands/chm_command.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def create_html_file(entry, manager, outputdir, db)
267267

268268
begin
269269
new_html = html.gsub(/charset=utf-8/i, 'charset=Windows-31J').
270-
encode('windows-31j', **{ :fallback => FIX_UNDEF })
270+
encode('windows-31j', fallback: FIX_UNDEF)
271271
mode = 'w:windows-31j'
272272
rescue
273273
new_html = html # write file as it is, utf-8
@@ -283,7 +283,7 @@ def create_file(path, skel)
283283
$stderr.print("creating #{path} ...")
284284
str = ERB.new(skel).result(binding).
285285
gsub(/charset=utf-8/i, 'charset=Windows-31J').
286-
encode('windows-31j', **{ :fallback => FIX_UNDEF } )
286+
encode('windows-31j', fallback: FIX_UNDEF)
287287
path.open('w:windows-31j') do |f|
288288
f.write(str)
289289
end

0 commit comments

Comments
 (0)