Fix all lint errors

This commit is contained in:
9seconds
2018-05-31 09:54:20 +03:00
parent 42e5be36bf
commit 4ad913add2
12 changed files with 101 additions and 47 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ func main() {
usage("Cannot get local IP address.")
}
myIPBytes, err := ioutil.ReadAll(resp.Body)
resp.Body.Close()
resp.Body.Close() // nolint: errcheck
if err != nil {
usage("Cannot get local IP address.")
@@ -141,6 +141,6 @@ func printURLs(data interface{}) {
}
func usage(msg string) {
io.WriteString(os.Stderr, msg+"\n")
io.WriteString(os.Stderr, msg+"\n") // nolint: errcheck
os.Exit(1)
}