Skip to content

Commit ac6b6f0

Browse files
committed
Use .file? instead of .exists? for file existence
1 parent 7d00acc commit ac6b6f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fcm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def credentials_error_msg(param)
303303
end
304304

305305
def filename_or_io_like?(path)
306-
(path.is_a?(String) || path.respond_to?(:open)) && File.exists?(path)
306+
(path.is_a?(String) || path.respond_to?(:open)) && File.file?(path)
307307
end
308308

309309
def json_key

0 commit comments

Comments
 (0)