Skip to content

Commit cd88d28

Browse files
style: fix golangci-lint errcheck and goimports issues
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
1 parent 02f4ad8 commit cd88d28

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

pkg/provider/aws/nlb_delete_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ import (
2121
"fmt"
2222
"testing"
2323

24-
"github.com/NVIDIA/holodeck/api/holodeck/v1alpha1"
2524
"github.com/aws/aws-sdk-go-v2/aws"
2625
"github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2"
2726
elbv2types "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types"
2827
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
28+
29+
"github.com/NVIDIA/holodeck/api/holodeck/v1alpha1"
2930
)
3031

3132
// MockELBv2Client implements internalaws.ELBv2Client for testing.

pkg/provisioner/ssh_config_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ import (
2727
"testing"
2828
"time"
2929

30-
"github.com/NVIDIA/holodeck/internal/logger"
3130
"golang.org/x/crypto/ssh"
31+
32+
"github.com/NVIDIA/holodeck/internal/logger"
3233
)
3334

3435
// countingTransport counts Dial() calls while connecting to a black hole.
@@ -126,14 +127,14 @@ func startBlackHoleServer(t *testing.T) string {
126127
}
127128
go func(c net.Conn) {
128129
<-done
129-
c.Close()
130+
_ = c.Close()
130131
}(conn)
131132
}
132133
}()
133134

134135
t.Cleanup(func() {
135136
close(done)
136-
listener.Close()
137+
_ = listener.Close()
137138
})
138139

139140
return listener.Addr().String()

0 commit comments

Comments
 (0)