Commit 6dbdfc1f authored by Albert Salim's avatar Albert Salim

Fix reassigned variable name

parent 96195d4f
...@@ -75,8 +75,8 @@ class AutomatedCleanup ...@@ -75,8 +75,8 @@ class AutomatedCleanup
deployed_at = Time.parse(last_deploy) deployed_at = Time.parse(last_deploy)
if deployed_at < delete_threshold if deployed_at < delete_threshold
environment = delete_environment(environment, deployment) deleted_environment = delete_environment(environment, deployment)
if environment if deleted_environment
release = Quality::HelmClient::Release.new(environment.slug, 1, deployed_at.to_s, nil, nil, review_apps_namespace) release = Quality::HelmClient::Release.new(environment.slug, 1, deployed_at.to_s, nil, nil, review_apps_namespace)
releases_to_delete << release releases_to_delete << release
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