aergoio/aergo

View on GitHub
types/listentry.go

Summary

Maintainability
A
40 mins
Test Coverage
B
80%

Function NewListEntry has 6 return statements (exceeds 4 allowed).
Open

func NewListEntry(raw RawEntry) (WhiteListEntry, error) {
    literal, _ := json.Marshal(raw)

    if len(raw.Address) == 0 && len(raw.Cidr) == 0 && len(raw.PeerId) == 0 {
        return dummyListEntry, InvalidEntryErr
Severity: Major
Found in types/listentry.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status