contract/callback.go
Function callbackArg
has 6 return statements (exceeds 4 allowed). Open
Open
func callbackArg(typ reflect.Type) (callbackArgConverter, error) {
switch typ.Kind() {
case reflect.Interface:
if typ.NumMethod() != 0 {
return nil, errors.New("the only supported interface type is interface{}")