Commit 262ff95f authored by Arturo Herrero's avatar Arturo Herrero

Remove unnecessary condition

parent 149c23ec
...@@ -346,7 +346,7 @@ class Service < ApplicationRecord ...@@ -346,7 +346,7 @@ class Service < ApplicationRecord
service.template = false service.template = false
service.instance = false service.instance = false
service.project_id = project_id service.project_id = project_id
service.active = false if service.active? && service.invalid? service.active = false if service.invalid?
service service
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