Skip to content

Commit

Permalink
gofmt'ing/linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jm96441n committed Feb 2, 2023
1 parent 2060fe1 commit c5d48da
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cli/cmd/proxy/loglevel/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (l *LogLevelCommand) parseFlags(args []string) error {
}

func (l *LogLevelCommand) validateFlags() error {
if l.level != "" && l.reset == true {
if l.level != "" && l.reset {
return fmt.Errorf("cannot set log level to %q and reset to 'info' at the same time", l.level)
}
if l.namespace == "" {
Expand Down
2 changes: 1 addition & 1 deletion cli/cmd/proxy/read/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"
"sync"

"github.com/hashicorp/consul-k8s/cli/common/envoy"
"github.com/hashicorp/consul-k8s/cli/common"
"github.com/hashicorp/consul-k8s/cli/common/envoy"
"github.com/hashicorp/consul-k8s/cli/common/flag"
"github.com/hashicorp/consul-k8s/cli/common/terminal"
"github.com/posener/complete"
Expand Down
2 changes: 1 addition & 1 deletion cli/cmd/proxy/read/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"os"
"testing"

"github.com/hashicorp/consul-k8s/cli/common/envoy"
"github.com/hashicorp/consul-k8s/cli/common"
"github.com/hashicorp/consul-k8s/cli/common/envoy"
cmnFlag "github.com/hashicorp/consul-k8s/cli/common/flag"
"github.com/hashicorp/consul-k8s/cli/common/terminal"
"github.com/hashicorp/go-hclog"
Expand Down
4 changes: 2 additions & 2 deletions cli/common/envoy/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ func (m *mockPortForwarder) Open(ctx context.Context) (string, error) { return m
func (m *mockPortForwarder) Close() {}

func testLogConfig() map[string]string {
cfg := make(map[string]string, len(envoyLoggers))
for k := range envoyLoggers {
cfg := make(map[string]string, len(EnvoyLoggers))
for k := range EnvoyLoggers {
cfg[k] = "debug"
}
return cfg
Expand Down
2 changes: 1 addition & 1 deletion cli/common/envoy/logger_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (l *LoggerParams) String() string {
}
}

// trace debug info warning error critical off
// trace debug info warning error critical off.
var envoyLevels = map[string]struct{}{
"trace": {},
"debug": {},
Expand Down

0 comments on commit c5d48da

Please sign in to comment.