diff options
author | Nick Thomas <nick@gitlab.com> | 2018-08-23 17:15:10 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-08-23 17:15:10 +0300 |
commit | 08ce3b131151b847b3dd41535c016920a5937bf8 (patch) | |
tree | f15ff413bf8572eb6f8206bc9731724a84691c46 /internal/domain | |
parent | 980dae3a54b5d0f2a07374473bc23618b6ad5c8f (diff) |
dm.Map#ReadGroups never returns an error
Diffstat (limited to 'internal/domain')
-rw-r--r-- | internal/domain/map.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/domain/map.go b/internal/domain/map.go index a2c49317..30a8a74d 100644 --- a/internal/domain/map.go +++ b/internal/domain/map.go @@ -119,7 +119,7 @@ type jobResult struct { } // ReadGroups walks the pages directory and populates dm with all the domains it finds. -func (dm Map) ReadGroups(rootDomain string, fis godirwalk.Dirents) error { +func (dm Map) ReadGroups(rootDomain string, fis godirwalk.Dirents) { fanOutGroups := make(chan string) fanIn := make(chan jobResult) wg := &sync.WaitGroup{} @@ -170,7 +170,6 @@ func (dm Map) ReadGroups(rootDomain string, fis godirwalk.Dirents) error { close(fanOutGroups) <-done - return nil } const ( |