summaryrefslogtreecommitdiff
path: root/lib/flowdock/git/builder.rb
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2019-06-28 14:28:29 +0200
committerToon Claes <toon@gitlab.com>2019-06-28 14:28:29 +0200
commit288b050e5b226e403f9c88c3fe16fb4279714d69 (patch)
tree9b3f96b71cab616d44000c192ab5870098ee6c5f /lib/flowdock/git/builder.rb
parent046527beb585b8086e8b280dee78f43417b9a753 (diff)
downloadgitlab-ce-tc-no-more-try.tar.gz
Enable Style/SafeNavigation coptc-no-more-try
I ran `rubocop -a --only Style/SafeNavigation` to correct all. I could not enable `ConvertTry` cause it does not seem to be supported by the version we're using. https://gitlab.com/gitlab-org/gitlab-ce/issues/63875
Diffstat (limited to 'lib/flowdock/git/builder.rb')
-rw-r--r--lib/flowdock/git/builder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/flowdock/git/builder.rb b/lib/flowdock/git/builder.rb
index 6f4428d1f42..29cf325c383 100644
--- a/lib/flowdock/git/builder.rb
+++ b/lib/flowdock/git/builder.rb
@@ -52,7 +52,7 @@ module Flowdock
def body
content = @commit[:message][first_line.size..-1]
- content.strip! if content
+ content&.strip!
"<pre>#{content}</pre>" unless content.empty?
end