lib/overcommit/hook/commit_msg/text_width.rb in overcommit-jeygeethanmedia-0.53.1.2 vs lib/overcommit/hook/commit_msg/text_width.rb in overcommit-jeygeethanmedia-0.58.0
- old
+ new
@@ -30,10 +30,10 @@
end
min_subject_width = config['min_subject_width']
if subject.length < min_subject_width
@errors << "Commit message subject must be >= #{min_subject_width} characters"
- return
+ nil
end
end
def find_errors_in_body(lines)
return unless lines.count > 2