diff options
author | Toon Claes <toon@gitlab.com> | 2019-06-28 14:28:29 +0200 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2019-06-28 14:28:29 +0200 |
commit | 288b050e5b226e403f9c88c3fe16fb4279714d69 (patch) | |
tree | 9b3f96b71cab616d44000c192ab5870098ee6c5f /lib/flowdock/git/builder.rb | |
parent | 046527beb585b8086e8b280dee78f43417b9a753 (diff) | |
download | gitlab-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.rb | 2 |
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 |