fix golint issues in core/rescue (#508)

master
Kevin Wan 4 years ago committed by GitHub
parent 497762ab47
commit 90562df826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,9 @@ package rescue
import "github.com/tal-tech/go-zero/core/logx" import "github.com/tal-tech/go-zero/core/logx"
// Recover is used with defer to do cleanup on panics.
// Use it like:
// defer Recover(func() {})
func Recover(cleanups ...func()) { func Recover(cleanups ...func()) {
for _, cleanup := range cleanups { for _, cleanup := range cleanups {
cleanup() cleanup()

Loading…
Cancel
Save