agents/config/domain.go
Method DomainConfig.IsValid
has 7 return statements (exceeds 4 allowed). Open
Open
func (d DomainConfig) IsValid(_ context.Context) (ok bool, err error) {
if !utils.ContainsString(chainTypeList, d.Type) {
return false, fmt.Errorf("invalid chain type %s, %w", d.Type, ErrInvalidChainType)
}