summaryrefslogtreecommitdiff
path: root/app/models/deployment.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-05 12:09:59 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-05 12:09:59 +0000
commitb90cf01a88df981f452a7f6b6d74e8fd0ccbf90b (patch)
tree669bd8c7dab7f6aad2b9eef6d03cdb7bb4e687db /app/models/deployment.rb
parentf9053931de583bbc3c6a8033f70929a91ce02e93 (diff)
downloadgitlab-ce-b90cf01a88df981f452a7f6b6d74e8fd0ccbf90b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r--app/models/deployment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb
index c80f208ca1d..1ae7d9925a5 100644
--- a/app/models/deployment.rb
+++ b/app/models/deployment.rb
@@ -294,7 +294,7 @@ class Deployment < ApplicationRecord
end
def older_than_last_successful_deployment?
- last_deployment_id = environment.last_deployment&.id
+ last_deployment_id = environment&.last_deployment&.id
return false unless last_deployment_id.present?
return false if self.id == last_deployment_id