Skip to content
This repository was archived by the owner on Feb 14, 2018. It is now read-only.

Commit b6ccece

Browse files
committed
Bugfix: replace File.exists? with Store.exists?
1 parent 77ca2aa commit b6ccece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/sinatra/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def oops status, message
265265
get %r{^/([a-z0-9-]+)\.json$} do |name|
266266
content_type 'application/json'
267267
cross_origin
268-
halt 404 unless File.exists? "#{farm_page.directory}/#{name}" or File.exists? "#{farm_page.default_directory}/#{name}"
268+
halt 404 unless Store.exists?("#{farm_page.directory}/#{name}") || Store.exists?("#{farm_page.default_directory}/#{name}")
269269
JSON.pretty_generate(farm_page.get(name))
270270
end
271271

0 commit comments

Comments
 (0)