Skip to content

Commit 1dd5c28

Browse files
committed
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
1 parent 349c26f commit 1dd5c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/google/api_client/service/simple_file_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def delete(name, options = nil)
124124
# Read the entire cache file from disk.
125125
# Will avoid reading if there have been no changes.
126126
def read_file
127-
if !File.exists? @file_path
127+
if !File.exist? @file_path
128128
@cache = nil
129129
else
130130
# Check for changes after our last read or write.

0 commit comments

Comments
 (0)