Commit 7d469cf1 authored by Michael Kozono's avatar Michael Kozono

Fix would-be regression

https://gitlab.com/gitlab-org/gitlab-ce/commit/57e3e942de1adef2c8621905370f07d7da7870c4

I changed it to a separate condition rather than depending on the order of the case-when statements to prevent this mistake again.
parent e8972c11
...@@ -243,9 +243,7 @@ module Gitlab ...@@ -243,9 +243,7 @@ module Gitlab
when User when User
actor actor
when Key when Key
actor.user actor.user unless actor.is_a?(DeployKey)
when DeployKey
nil
when :ci when :ci
nil nil
end end
......
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