Skip to content

Commit 49a1894

Browse files
author
wolfsblu
committed
Replace deprecated exists call
1 parent 0659d2a commit 49a1894

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/neo.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,15 @@ def initialize
218218

219219
def add_progress(prog)
220220
@_contents = nil
221-
exists = File.exists?(PROGRESS_FILE_NAME)
221+
exists = File.exist?(PROGRESS_FILE_NAME)
222222
File.open(PROGRESS_FILE_NAME,'a+') do |f|
223223
f.print "#{',' if exists}#{prog}"
224224
end
225225
end
226226

227227
def progress
228228
if @_contents.nil?
229-
if File.exists?(PROGRESS_FILE_NAME)
229+
if File.exist?(PROGRESS_FILE_NAME)
230230
File.open(PROGRESS_FILE_NAME,'r') do |f|
231231
@_contents = f.read.to_s.gsub(/\s/,'').split(',')
232232
end

0 commit comments

Comments
 (0)