Skip to content

Commit 09a5d12

Browse files
committed
Modify ruby scripts: File.exists? to File.exist?
1 parent 1ca265b commit 09a5d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/07-git-tools/git-credential-read-only

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ OptionParser.new do |opts|
1111
end.parse!
1212

1313
exit(0) unless ARGV[0].downcase == 'get' # <2>
14-
exit(0) unless File.exists? path
14+
exit(0) unless File.exist? path
1515

1616
known = {} # <3>
1717
while line = STDIN.gets

0 commit comments

Comments
 (0)