diff options
Diffstat (limited to 'lib/gitlab/web_hooks/recursion_detection.rb')
-rw-r--r-- | lib/gitlab/web_hooks/recursion_detection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/web_hooks/recursion_detection.rb b/lib/gitlab/web_hooks/recursion_detection.rb index 031d9ec6ec4..7e79283757f 100644 --- a/lib/gitlab/web_hooks/recursion_detection.rb +++ b/lib/gitlab/web_hooks/recursion_detection.rb @@ -41,7 +41,7 @@ module Gitlab ::Gitlab::Redis::SharedState.with do |redis| redis.multi do |multi| - multi.sadd(cache_key, hook.id) + multi.sadd?(cache_key, hook.id) multi.expire(cache_key, TOUCH_CACHE_TTL) end end |