diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-21 19:02:23 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:31:57 -0600 |
commit | 8a4d68c53e9c58ad7f8dce1494f7976292b2f929 (patch) | |
tree | 773814f7079c626cafabc229f929cafbe4d4b2e7 /app/models/commit.rb | |
parent | 7ea641b6d0882fc782a7eb493daf8b66d076924b (diff) | |
download | gitlab-ce-8a4d68c53e9c58ad7f8dce1494f7976292b2f929.tar.gz |
Enable Style/ConditionalAssignment
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 7afc8f4add8..feb35bb3e92 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -122,10 +122,10 @@ class Commit def full_title return @full_title if @full_title - if safe_message.blank? - @full_title = no_commit_message + @full_title = if safe_message.blank? + no_commit_message else - @full_title = safe_message.split("\n", 2).first + safe_message.split("\n", 2).first end end |