rpc/authentication.go
Method AergoRPCService.checkAuth
has 6 return statements (exceeds 4 allowed). Open
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 {