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

Commit

Permalink
Remove aliased net/url import (#25)
Browse files Browse the repository at this point in the history
There is no import conflict on the url package so the alias is redundant
and hurts readability.
  • Loading branch information
Crevil committed Jul 11, 2019
1 parent 0665e22 commit 65a8aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io"
"net/http"
neturl "net/url"
"net/url"
"os"
"os/signal"
"strconv"
Expand Down Expand Up @@ -174,7 +174,7 @@ func runAPIPolling(done chan error, url, token string, organizationIDs []string,
func poll(organization org, collector func(org) error) error {
err := collector(organization)
if err != nil {
httpErr, ok := err.(*neturl.Error)
httpErr, ok := err.(*url.Error)
if ok {
if httpErr.Timeout() {
log.Errorf("Collection failed for organization '%s' due timeout", organization.Name)
Expand Down

0 comments on commit 65a8aa3

Please sign in to comment.