Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/source/disk/disk.go')
-rw-r--r--internal/source/disk/disk.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/source/disk/disk.go b/internal/source/disk/disk.go
index b79d222d..272d6c4e 100644
--- a/internal/source/disk/disk.go
+++ b/internal/source/disk/disk.go
@@ -31,9 +31,7 @@ func (d *Disk) GetDomain(host string) (*domain.Domain, error) {
d.lock.RLock()
defer d.lock.RUnlock()
- domain, _ := d.dm[host]
-
- return domain, nil
+ return d.dm[host], nil
}
// IsReady checks if the domains source is ready for work. The disk source is