aergoio/aergo

View on GitHub
contract/callback.go

Summary

Maintainability
A
40 mins
Test Coverage
F
0%

Function callbackArg has 6 return statements (exceeds 4 allowed).
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{}")
Severity: Major
Found in contract/callback.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status