aergoio/aergo

View on GitHub
p2p/p2pcommon/subprotocol_string.go

Summary

Maintainability
A
35 mins
Test Coverage
F
0%

Method SubProtocol.String has 5 return statements (exceeds 4 allowed).
Open

func (i SubProtocol) String() string {
    switch {
    case 1 <= i && i <= 9:
        i -= 1
        return _SubProtocol_name_0[_SubProtocol_index_0[i]:_SubProtocol_index_0[i+1]]
Severity: Major
Found in p2p/p2pcommon/subprotocol_string.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status