feat: lint errors

This commit is contained in:
franklin 2023-06-06 12:33:28 +02:00
parent 6e1e3271f8
commit 944c6a4a87
2 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ import (
type (
Config struct {
Charts ConfigCharts `json:"charts" yaml:"charts"`
Registry ConfigRegistry `json:"registry" json:"registry"`
Registry ConfigRegistry `json:"registry" yaml:"registry"`
Clusters []ConfigCluster `json:"clusters" yaml:"clusters"`
}
ConfigCharts struct {
@ -18,8 +18,8 @@ type (
Prefix string `json:"prefix" yaml:"prefix"`
}
ConfigRegistry struct {
Name string `json:"name" json:"name"`
Port string `json:"port" json:"port"`
Name string `json:"name" yaml:"name"`
Port string `json:"port" yaml:"port"`
}
ConfigCluster struct {
Name string `json:"name" yaml:"name"`

View File

@ -85,7 +85,7 @@ func (i *K3d) Registry(ctx context.Context, name string) (*Registry, error) {
return registry, nil
}
}
return nil, nil
return nil, nil //nolint: nilnil
}
func (i *K3d) Cluster(ctx context.Context, name string) (*Cluster, error) {
@ -102,5 +102,5 @@ func (i *K3d) Cluster(ctx context.Context, name string) (*Cluster, error) {
return cluster, nil
}
}
return nil, nil
return nil, nil //nolint: nilnil
}