forked from gitea/gitea-vet
A golang vet tool for gitea development
Andrew Thornton
7c98703580
If you call `sess := x.NewSession()` you must call `sess.Close()` or return the session. This is not quite completely perfect for example if you return the output of x.NewSession() immediately it will falsely claim that you're not closing it. However it shows the beginnings of how to do it. Signed-off-by: Andrew Thornton <art27@cantab.net> close #15 Reviewed-on: gitea/gitea-vet#16 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: 6543 <6543@obermui.de> Co-authored-by: Andrew Thornton <art27@cantab.net> Co-committed-by: Andrew Thornton <art27@cantab.net> |
||
---|---|---|
checks | ||
.changelog.yml | ||
.drone.yml | ||
.gitignore | ||
.golangci.yml | ||
CHANGELOG.md | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
Makefile | ||
README.md |