Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable whitespace linter #253

Merged
merged 1 commit into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ linters:
- unused
- usestdlibvars
# - varnamelen
- whitespace

linters-settings:
gocritic:
Expand Down
1 change: 0 additions & 1 deletion cmd/gwctl/subcommand/gwctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func InitCmd() *cobra.Command {
Short: "A start command set all parameter state of gwctl (gw control)",
Long: `A start command set all parameter state of gwctl (gw control)`,
RunE: func(cmd *cobra.Command, args []string) error {

return o.run()
},
}
Expand Down
1 change: 0 additions & 1 deletion pkg/k8s/kubernetes/kubeinformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ func (k *kubeData) CreateEndpoint(epName, namespace, targetIP string, targetPort
if err != nil {
log.Errorf("Error creating endpoint: %s", err)
return err

}
k.serviceMap[epName] = namespace

Expand Down
1 change: 0 additions & 1 deletion pkg/platform/k8s/pod_reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func TestPodReconciler(t *testing.T) {
require.NoError(t, err)
require.Empty(t, podReconciler.ipToPod, "ipToPod map should be empty")
require.Empty(t, podReconciler.podList, "podList map should be empty")

}

func getFakeClient(initObjs ...client.Object) (client.WithWatch, error) {
Expand Down
1 change: 0 additions & 1 deletion pkg/utils/netutils/netutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ func CreateDefaultResilientHTTPServer(addr string, mux http.Handler) *http.Serve
// CreateResilientHTTPServer returns an http.Server configured with the timeouts provided.
func CreateResilientHTTPServer(addr string, mux http.Handler, tlsConfig *tls.Config,
headerReadTimeout, writeTimeout, idleTimeout *time.Duration) *http.Server {

const (
defaultReadHeaderTimeout = 2 * time.Second
defaultWriteTimeout = 2 * time.Second
Expand Down
Loading