If you open a session either return it or close it #16
No reviewers
Labels
No Label
breaking
bug
build
duplicate
enhancement
feature
help wanted
invalid
question
skip-changelog
wontfix
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/gitea-vet#16
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "zeripath/gitea-vet:i-see-a-session-and-i-want-it-painted-black"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If you call
sess := x.NewSession()
you must callsess.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
CI failed is related.
Having the ability to work with the AST in the stdlib is phenomenal.
CI has finally run again!