Skip to content

Commit

Permalink
Avoid warning about File.exists?. Again
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Jan 3, 2023
1 parent 905b1a3 commit 3f80f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdf/writer/fontmetrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def self.open(font_name)
# Attempt to unmarshal an .afm.rfm file first. If it is loaded,
# we're in good shape.
begin
if File.exists?(rfm_file)
if File.exist?(rfm_file)
data = File.open(rfm_file, "rb") { |file| file.read }
font = Marshal.load(data)
return font
Expand Down

0 comments on commit 3f80f31

Please sign in to comment.