pkg/core/route.go
Method Route.GenerateServers
has 58 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (r *Route) GenerateServers() ([]Server, error) {
chain, err := r.parseChain()
if err != nil && !errors.Is(err, ErrorInvalidNode) {
log.Errorf("Failed to parse chain: %v", err)
return nil, err
Method Route.GenerateServers
has 8 return statements (exceeds 4 allowed). Open
Open
func (r *Route) GenerateServers() ([]Server, error) {
chain, err := r.parseChain()
if err != nil && !errors.Is(err, ErrorInvalidNode) {
log.Errorf("Failed to parse chain: %v", err)
return nil, err