Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 65a8aa3

Browse files
author
Bjørn
authored
Remove aliased net/url import (#25)
There is no import conflict on the url package so the alias is redundant and hurts readability.
1 parent 0665e22 commit 65a8aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"io"
66
"net/http"
7-
neturl "net/url"
7+
"net/url"
88
"os"
99
"os/signal"
1010
"strconv"
@@ -174,7 +174,7 @@ func runAPIPolling(done chan error, url, token string, organizationIDs []string,
174174
func poll(organization org, collector func(org) error) error {
175175
err := collector(organization)
176176
if err != nil {
177-
httpErr, ok := err.(*neturl.Error)
177+
httpErr, ok := err.(*url.Error)
178178
if ok {
179179
if httpErr.Timeout() {
180180
log.Errorf("Collection failed for organization '%s' due timeout", organization.Name)

0 commit comments

Comments
 (0)