Class: GitAuto::Formatters::MessageFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/git_auto/formatters/message_formatter.rb

Constant Summary collapse

HEADER_MAX_LENGTH =
72
BODY_LINE_MAX_LENGTH =
80

Instance Method Summary collapse

Instance Method Details

#format(message) ⇒ Object



9
10
11
12
13
# File 'lib/git_auto/formatters/message_formatter.rb', line 9

def format(message)
  return nil if message.nil? || message.strip.empty?

  message.strip
end