Skip to content
Snippets Groups Projects
Commit b4ae55f4 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Prevent nil exception in environment status

parent ee373f28
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -8,8 +8,8 @@ class EnvironmentStatus
delegate :id, to: :environment
delegate :name, to: :environment
delegate :project, to: :environment
delegate :status, to: :deployment
delegate :deployed_at, to: :deployment
delegate :status, to: :deployment, allow_nil: true
delegate :deployed_at, to: :deployment, allow_nil: true
 
def self.for_merge_request(mr, user)
build_environments_status(mr, user, mr.head_pipeline)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment