BigW Consortium Gitlab

Commit 81439c90 by Phil Hughes

Moved code to single line if

parent 438d614b
...@@ -25,11 +25,9 @@ module IssuablesHelper ...@@ -25,11 +25,9 @@ module IssuablesHelper
if @project if @project
member = @project.team.find_member(user_id) member = @project.team.find_member(user_id)
if member user = member.user if member
user = member.user
end
else else
user = User.find(user_id) user = User.find_by(id: user_id)
end end
if user if user
......
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