Skip to content

Commit 7107635

Browse files
committed
fix linter issues
1 parent 436d782 commit 7107635

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

internal/cmd/ktf/environments.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func init() { //nolint:gochecknoinits
6262
var environmentsCreateCmd = &cobra.Command{
6363
Use: "create",
6464
Short: "create a new testing environment",
65-
Run: func(cmd *cobra.Command, args []string) {
65+
Run: func(cmd *cobra.Command, _ []string) {
6666
ctx, cancel := context.WithTimeout(context.Background(), EnvironmentCreateTimeout)
6767
defer cancel()
6868

@@ -286,7 +286,7 @@ func init() { //nolint:gochecknoinits
286286
var environmentsDeleteCmd = &cobra.Command{
287287
Use: "delete",
288288
Short: "delete a testing environment",
289-
Run: func(cmd *cobra.Command, args []string) {
289+
Run: func(cmd *cobra.Command, _ []string) {
290290
ctx, cancel := context.WithTimeout(context.Background(), EnvironmentCreateTimeout)
291291
defer cancel()
292292

pkg/clusters/addons/kong/addon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func (a *Addon) Deploy(ctx context.Context, cluster clusters.Cluster) error {
240240
if opts.Server == "" {
241241
opts.Server = "https://index.docker.io/v1/"
242242
}
243-
opts.PrintObj = func(obj runtime.Object) error {
243+
opts.PrintObj = func(_ runtime.Object) error {
244244
return nil
245245
}
246246

pkg/environments/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (b *Builder) Build(ctx context.Context) (env Environment, err error) {
185185
cluster: cluster,
186186
}, nil
187187
case 1:
188-
return nil, addonDeploymentErrors[0] //nolint:gosec
188+
return nil, addonDeploymentErrors[0]
189189
default:
190190
errMsgs := make([]string, 0, totalFailures)
191191
for _, err := range addonDeploymentErrors {

pkg/utils/kong/fake_admin_api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type FakeAdminAPIServer struct {
4141
func NewFakeAdminAPIServer() (*FakeAdminAPIServer, error) {
4242
// start up the fake admin api server
4343
mocks := make(chan AdminAPIResponse, maxMocks)
44-
endpoint := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
44+
endpoint := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
4545
select {
4646
case override := <-mocks:
4747
// run any callbacks that were configured in the mock (these are optional)

0 commit comments

Comments
 (0)