lib/overcommit/hook/commit_msg/text_width.rb in overcommit-0.7.0 vs lib/overcommit/hook/commit_msg/text_width.rb in overcommit-0.8.0
- old
+ new
@@ -14,10 +14,10 @@
if commit_message_lines.size > 2
commit_message_lines[2..-1].each_with_index do |line, index|
chomped = line.chomp
if chomped.size > max_body_width
- error = "Line #{index + 3} of commit message has > " <<
+ error = "Line #{index + 3} of commit message has > " \
"#{max_body_width} characters"
errors << error
end
end
end