I've setup the gem to work with rubocop, and when I run git commit I get the following error:
c:/Ruby23/lib/ruby/gems/2.3.0/gems/pre-commit-0.30.0/lib/pre-commit/utils/staged_files.rb:37:inbinary?': undefined method >' for nil:NilClass (NoMethodError)
I'm running Ruby 2.3 on Windows and upon inspecting the file in question I noticed that the line in question is bytes = File.stat(file).blksize, which could return Nil on unsupported platforms. Is this an issue due to Windows or something else?
Hi!
I've setup the gem to work with rubocop, and when I run
git commit
I get the following error:c:/Ruby23/lib/ruby/gems/2.3.0/gems/pre-commit-0.30.0/lib/pre-commit/utils/staged_files.rb:37:in
binary?': undefined method>' for nil:NilClass (NoMethodError)
I'm running Ruby 2.3 on Windows and upon inspecting the file in question I noticed that the line in question is
bytes = File.stat(file).blksize
, which could returnNil
on unsupported platforms. Is this an issue due to Windows or something else?Thank you!