Skip to content

Commit 5fc6c32

Browse files
Replace File.exists? with File.exist? #7
Replace File.exists? with File.exist?
2 parents 28e268c + 1762b55 commit 5fc6c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rswag-ui/lib/rswag/ui/middleware.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def render_template
3737
end
3838

3939
def template_filename
40-
@config.template_locations.find { |filename| File.exists?(filename) }
40+
@config.template_locations.find { |filename| File.exist?(filename) }
4141
end
4242
end
4343
end

0 commit comments

Comments
 (0)