Files
codeql/go/ql/test/query-tests/RedundantCode/RedundantRecover/RedundantRecover1Good.go
2022-05-20 10:07:19 -07:00

15 lines
167 B
Go

package main
import "fmt"
func callRecover1Good() {
if recover() != nil {
fmt.Printf("recovered")
}
}
func fun1Good() {
defer callRecover1Good()
panic("1")
}