Add staticcheck lint (#245)

This commit is contained in:
Erik Johnston 2017-09-20 14:54:17 +01:00 committed by GitHub
parent 584acbe9a9
commit 340a84cdc0
6 changed files with 9 additions and 7 deletions

View file

@ -190,7 +190,7 @@ func getMediaURI(host, endpoint, query string, components []string) string {
func testUpload(host, filePath string) {
fmt.Printf("==TESTING== upload %v to %v\n", filePath, host)
file, err := os.Open(filePath)
defer file.Close() // nolint: errcheck
defer file.Close() // nolint: errcheck, staticcheck, megacheck
if err != nil {
panic(err)
}