Skip to content

Commit

Permalink
Replacing strings.Title with cases.Title to make broken CI linting pa…
Browse files Browse the repository at this point in the history
…ss (#1342)
  • Loading branch information
jmurret authored Jul 15, 2022
1 parent 77e3df1 commit 5322178
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion control-plane/subcommand/server-acl-init/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
"github.com/hashicorp/go-hclog"
"github.com/mitchellh/cli"
"github.com/mitchellh/mapstructure"
"golang.org/x/text/cases"
"golang.org/x/text/language"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
Expand Down Expand Up @@ -755,7 +757,7 @@ func (c *Command) configureGateway(gatewayParams ConfigureGatewayParams, consulC
for _, name := range gatewayParams.GatewayNames {
if name == "" {
errMessage := fmt.Sprintf("%s gateway name cannot be empty",
strings.Title(strings.ToLower(gatewayParams.GatewayType)))
cases.Title(language.English).String(gatewayParams.GatewayType))
c.log.Error(errMessage)
return errors.New(errMessage)
}
Expand Down

0 comments on commit 5322178

Please sign in to comment.