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/gitlab/client/client.go')
-rw-r--r--internal/source/gitlab/client/client.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/source/gitlab/client/client.go b/internal/source/gitlab/client/client.go
index de8ae2a5..4b6ea98d 100644
--- a/internal/source/gitlab/client/client.go
+++ b/internal/source/gitlab/client/client.go
@@ -2,7 +2,6 @@ package client
import (
"context"
- "encoding/json"
"errors"
"fmt"
"io"
@@ -128,7 +127,7 @@ func (gc *Client) GetLookup(ctx context.Context, host string) api.Lookup {
}()
lookup := api.Lookup{Name: host}
- lookup.Error = json.NewDecoder(resp.Body).Decode(&lookup.Domain)
+ lookup.ParseDomain(resp.Body)
return lookup
}