Fix warning: File.exists? is deprecated
File.exist? should be used instead. Might consider using File.file? instead of File.exist? since File.exist? will return true when given the path of a file or a directory. Addresses the following warning: lib/google/api_client/service/simple_file_store.rb:127: warning: File.exists? is a deprecated name, use File.exist? instead
This commit is contained in:
parent
349c26fa8b
commit
1dd5c2820a
|
@ -124,7 +124,7 @@ module Google
|
|||
# Read the entire cache file from disk.
|
||||
# Will avoid reading if there have been no changes.
|
||||
def read_file
|
||||
if !File.exists? @file_path
|
||||
if !File.exist? @file_path
|
||||
@cache = nil
|
||||
else
|
||||
# Check for changes after our last read or write.
|
||||
|
|
Loading…
Reference in New Issue