aboutsummaryrefslogtreecommitdiff
path: root/services_controller.go
diff options
context:
space:
mode:
authorEmiliano Ciavatta2021-05-05 17:35:09 +0000
committerEmiliano Ciavatta2021-05-05 17:35:09 +0000
commit59d88f14ba153827a849a24b10c25980a85c9d96 (patch)
tree8fb0eeb96df248f01f01ecddb5dd18870c179d0a /services_controller.go
parentd6defddd70a548f0375e25e2ad8ad3080c71039d (diff)
Change color and position of the delete service button
Diffstat (limited to 'services_controller.go')
-rw-r--r--services_controller.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/services_controller.go b/services_controller.go
index aea4693..a9576fe 100644
--- a/services_controller.go
+++ b/services_controller.go
@@ -85,7 +85,8 @@ func (sc *ServicesController) DeleteService(c context.Context, service Service)
sc.mutex.Lock()
defer sc.mutex.Unlock()
- if err := sc.storage.Delete(Services).Context(c).Filter(OrderedDocument{{"_id", service.Port}}).One(); err != nil {
+ if err := sc.storage.Delete(Services).Context(c).Filter(OrderedDocument{{"_id", service.Port}}).
+ One(); err != nil {
return errors.New(err.Error())
} else {
delete(sc.services, service.Port)