Commit 9602c08b authored by Jayson Salazar's avatar Jayson Salazar

Fix rubocop offenses

parent 808489ae
...@@ -74,11 +74,11 @@ module Spam ...@@ -74,11 +74,11 @@ module Spam
begin begin
result, attribs, _error = spamcheck_client.issue_spam?(spam_issue: target, user: user, context: context) result, attribs, _error = spamcheck_client.issue_spam?(spam_issue: target, user: user, context: context)
# @TODO log if error is not nil https://gitlab.com/gitlab-org/gitlab/-/issues/329545 # @TODO log if error is not nil https://gitlab.com/gitlab-org/gitlab/-/issues/329545
return [nil, attribs] unless result return [nil, attribs] unless result
[result, attribs] [result, attribs]
rescue StandardError => e rescue StandardError => e
Gitlab::ErrorTracking.log_exception(e) Gitlab::ErrorTracking.log_exception(e)
......
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