diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-02 00:08:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-02 00:08:18 +0300 |
commit | 61666f277a484725307ae2b34697b13a300b2129 (patch) | |
tree | 01f93083ca2cb9d0eeca1443a23c31a4bdbd5532 /lib/gitlab/timeless.rb | |
parent | 4e3a998b8ec1351d8345863f6cad4b9bd497bd6a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/timeless.rb')
-rw-r--r-- | lib/gitlab/timeless.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/timeless.rb b/lib/gitlab/timeless.rb index b72d33113dd..ed0b7b4ed87 100644 --- a/lib/gitlab/timeless.rb +++ b/lib/gitlab/timeless.rb @@ -8,9 +8,9 @@ module Gitlab # negative arity means arguments are optional if block.arity == 1 || block.arity < 0 - block.call(model) + yield(model) else - block.call + yield end ensure |