summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-08-28 12:46:00 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-08-28 12:46:00 -0400
commitbed27b6a6d1fea22596ca8e643686c8aa61fa65d (patch)
treedee120e6b549bef299f1a22fc2f6fa8ecb6410a2 /lib
parent3e0757f2d265e0ab3b13c5d27786ced901744c90 (diff)
downloadgitlab-ce-bed27b6a6d1fea22596ca8e643686c8aa61fa65d.tar.gz
Update rubocop-gitlab-security to 0.1.0rs-update-rubocop-gitlab-security
Diffstat (limited to 'lib')
-rw-r--r--lib/after_commit_queue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/after_commit_queue.rb b/lib/after_commit_queue.rb
index b67575a3ac2..4750a2c373a 100644
--- a/lib/after_commit_queue.rb
+++ b/lib/after_commit_queue.rb
@@ -7,7 +7,7 @@ module AfterCommitQueue
end
def run_after_commit(method = nil, &block)
- _after_commit_queue << proc { self.send(method) } if method
+ _after_commit_queue << proc { self.send(method) } if method # rubocop:disable GitlabSecurity/PublicSend
_after_commit_queue << block if block
true
end