aergoio/aergo

View on GitHub
rpc/authentication.go

Summary

Maintainability
A
40 mins
Test Coverage
F
9%

Method AergoRPCService.checkAuth has 6 return statements (exceeds 4 allowed).
Open

func (rpc *AergoRPCService) checkAuth(ctx context.Context, auth Authentication) error {
    rpc.clientAuthLock.RLock()
    defer rpc.clientAuthLock.RUnlock()

    if !rpc.clientAuthOn || len(rpc.clientAuth) == 0 {
Severity: Major
Found in rpc/authentication.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status