diff --git a/storage/memory.go b/storage/memory.go index 72f24324..0a082afb 100644 --- a/storage/memory.go +++ b/storage/memory.go @@ -43,11 +43,8 @@ func (ims *InMemoryStore) GetAll() map[string]*core.ServiceStatus { func (ims *InMemoryStore) GetServiceStatus(group, name string) *core.ServiceStatus { key := fmt.Sprintf("%s_%s", group, name) ims.serviceResultsMutex.RLock() - serviceStatus, exists := ims.serviceStatuses[key] + serviceStatus := ims.serviceStatuses[key] ims.serviceResultsMutex.RUnlock() - if !exists { - return nil - } return serviceStatus }