Skip to content

Commit

Permalink
Replace deprecated File.exists? with exist? for Ruby wrapper (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
pocke committed Mar 14, 2022
1 parent d98dc59 commit c3b9420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .rubygems/bin/lefthook
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ binary = "#{binary}.exe" if os == "windows"
args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/#{binary}"

unless File.exists?(cmd)
unless File.exist?(cmd)
raise "Invalid platform. Lefthook wasn't build for #{RUBY_PLATFORM}"
end

Expand Down

0 comments on commit c3b9420

Please sign in to comment.