Skip to content

Commit

Permalink
goimports
Browse files Browse the repository at this point in the history
  • Loading branch information
jagsta committed Feb 22, 2017
1 parent c22eb10 commit 0dd0a41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func main() {
}
rawInput = r
} else {
r, err := getURL(filename,insecureFlag)
r, err := getURL(filename, insecureFlag)
if err != nil {
fatal(exitFetchURL, err)
}
Expand Down
8 changes: 4 additions & 4 deletions url.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package main

import (
"bufio"
"crypto/tls"
"fmt"
"io"
"net/http"
"regexp"
"time"
"crypto/tls"
)

func validURL(url string) bool {
Expand All @@ -17,11 +17,11 @@ func validURL(url string) bool {

func getURL(url string, insecure bool) (io.Reader, error) {
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: insecure},
}
TLSClientConfig: &tls.Config{InsecureSkipVerify: insecure},
}
client := http.Client{
Transport: tr,
Timeout: 20 * time.Second,
Timeout: 20 * time.Second,
}

req, err := http.NewRequest("GET", url, nil)
Expand Down

0 comments on commit 0dd0a41

Please sign in to comment.