Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ppmasa8 authored and glebm committed Oct 24, 2022
1 parent b699d70 commit 0b5b793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/updater/network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def read_cached_files(path, files)
if File.directory?(full_path)
files.each do |name|
path = "#{full_path}/#{name}"
contents[name] = File.read(path, mode: 'rb') if File.exists?(path)
contents[name] = File.read(path, mode: 'rb') if File.exist?(path)
end
end
contents
Expand All @@ -63,7 +63,7 @@ def get_file(url)
uri = URI(url)
cache_path = "./#@cache_path#{uri.path}#{uri.query.tr('?&=', '-') if uri.query}"
FileUtils.mkdir_p File.dirname(cache_path)
if File.exists?(cache_path)
if File.exist?(cache_path)
log_http_get_file url, true
File.read(cache_path, mode: 'rb')
else
Expand Down

0 comments on commit 0b5b793

Please sign in to comment.