We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 027e88b commit 83147b8Copy full SHA for 83147b8
lib/overcommit/hook_context/pre_commit.rb
@@ -19,7 +19,7 @@ def amendment?
19
# containing unicode characters, we replace the offending characters,
20
# since the pattern we're looking for will consist of ASCII characters
21
unless cmd.valid_encoding?
22
- cmd = cmd.encode('UTF-16be', invalid: :replace, replace: '?').encode('UTF-8')
+ cmd.encode!('UTF-16be', invalid: :replace, replace: '?').encode!('UTF-8')
23
end
24
25
return @amendment if
0 commit comments