Skip to content

Commit

Permalink
Replace File.exists? with File.exist? #7
Browse files Browse the repository at this point in the history
Replace File.exists? with File.exist?
  • Loading branch information
kiran-aluvala authored Apr 10, 2024
2 parents 28e268c + 1762b55 commit 5fc6c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rswag-ui/lib/rswag/ui/middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def render_template
end

def template_filename
@config.template_locations.find { |filename| File.exists?(filename) }
@config.template_locations.find { |filename| File.exist?(filename) }
end
end
end
Expand Down

0 comments on commit 5fc6c32

Please sign in to comment.