jish / pre-commit

A slightly improved pre-commit hook for git
https://jish.github.io/pre-commit/
Other
796 stars 96 forks source link

Replace `File.exists?` with `File.exist?` #283

Closed pocke closed 2 years ago

pocke commented 2 years ago

File.exists? has been deprecated and it will be removed since Ruby 3.2. This method has been removed on the master branch of Ruby, so pre-commit doesn't work with the master branch of Ruby.

This PR replaces the deprecated method calls to solve this problem.