mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
Merge pull request #683 from timcraft/remove-util-file-readable
Remove unused Util.file_readable method
This commit is contained in:
commit
f8fd0d263e
@ -150,18 +150,6 @@ module Stripe
|
||||
end
|
||||
end
|
||||
|
||||
def self.file_readable(file)
|
||||
# This is nominally equivalent to File.readable?, but that can
|
||||
# report incorrect results on some more oddball filesystems
|
||||
# (such as AFS)
|
||||
|
||||
::File.open(file) { |f| }
|
||||
rescue StandardError
|
||||
false
|
||||
else
|
||||
true
|
||||
end
|
||||
|
||||
def self.symbolize_names(object)
|
||||
case object
|
||||
when Hash
|
||||
|
Loading…
x
Reference in New Issue
Block a user