Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneutt committed Sep 30, 2021
1 parent d86c9a9 commit 41fb578
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/clusters/addons/httpbin/addon.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (a *Addon) Deploy(ctx context.Context, cluster clusters.Cluster) error {
namespace := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: a.namespace}}

// ensure the namespace for this addon is available
namespace, err := cluster.Client().CoreV1().Namespaces().Create(ctx, namespace, metav1.CreateOptions{})
_, err := cluster.Client().CoreV1().Namespaces().Create(ctx, namespace, metav1.CreateOptions{})
if err != nil {
if !errors.IsAlreadyExists(err) {
return err
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/networking/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func WaitForHTTP(ctx context.Context, getURL string, statusCode int) chan error {
errs := make(chan error)
go func() {
httpc := http.Client{Timeout: time.Second * 10}
httpc := http.Client{Timeout: time.Second * 10} //nolint:gomnd
for {
select {
case <-ctx.Done():
Expand Down

0 comments on commit 41fb578

Please sign in to comment.