Refactor helper in environments controller for clarity

What does this MR do?

Swaps out the implementation of the environments controller helper method added in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24441

What are the relevant issue numbers?

#49388 (closed)

Does this MR meet the acceptance criteria?

Edited by Sarah Yasonik

Merge request reports

Loading