Commit f5e6c447 authored by yisiliang's avatar yisiliang Committed by Sean McGivern

use #blank? instead #nil?

parent b84fed0f
...@@ -194,7 +194,7 @@ class Commit ...@@ -194,7 +194,7 @@ class Commit
def description def description
return safe_message if full_title.length >= 100 return safe_message if full_title.length >= 100
if safe_message.nil? if safe_message.blank?
no_commit_message no_commit_message
else else
safe_message.split("\n", 2)[1].try(:chomp) safe_message.split("\n", 2)[1].try(:chomp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment