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

12 lines
172 B
Go

package main
type RequestError string
func (e RequestError) Error() string {
return string(e)
}
func fetch(url string) (string, *RequestError) {
return "stuff", nil
}