Files
codeql/ql/test/query-tests/RedundantCode/ImpossibleInterfaceNilCheck/lib.go
2019-11-26 20:28:53 +00: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
}