-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Using latest golangci-lint, found something which looks like false positive
Possibly related: #995
var Response *http.Response
if Response, Error = client.Do(Request); Error == nil {
defer Response.Body.Close()
} else {
fmt.Println("[client.Do]", Error)
os.Exit(1)
}
cmd\GitHubReleasesAssets\json.go:41:3: exitAfterDefer: os.Exit will exit, and `defer Response.Body.Close()` will not run (gocritic)
os.Exit(1)
^
If snippet is not enough, source can be found here
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed