From 5a49412c58be5cdec7dc98a4bd00775b56db8159 Mon Sep 17 00:00:00 2001 From: hugoShaka Date: Thu, 28 Nov 2024 20:02:28 -0500 Subject: [PATCH] lint --- lib/automaticupgrades/maintenance/proxy.go | 6 ++++-- lib/automaticupgrades/maintenance/trigger.go | 2 +- lib/automaticupgrades/maintenance/trigger_test.go | 3 ++- lib/automaticupgrades/version/proxy.go | 4 +++- lib/automaticupgrades/version/versionget_test.go | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/automaticupgrades/maintenance/proxy.go b/lib/automaticupgrades/maintenance/proxy.go index e0ee13fdf03ad..a0e99d849513a 100644 --- a/lib/automaticupgrades/maintenance/proxy.go +++ b/lib/automaticupgrades/maintenance/proxy.go @@ -20,11 +20,13 @@ package maintenance import ( "context" + + "github.com/gravitational/trace" + "sigs.k8s.io/controller-runtime/pkg/client" + "github.com/gravitational/teleport/api/client/webclient" "github.com/gravitational/teleport/lib/automaticupgrades/cache" "github.com/gravitational/teleport/lib/automaticupgrades/constants" - "github.com/gravitational/trace" - "sigs.k8s.io/controller-runtime/pkg/client" ) type proxyMaintenanceClient struct { diff --git a/lib/automaticupgrades/maintenance/trigger.go b/lib/automaticupgrades/maintenance/trigger.go index bd68ac052b2df..5d9449d7ad864 100644 --- a/lib/automaticupgrades/maintenance/trigger.go +++ b/lib/automaticupgrades/maintenance/trigger.go @@ -20,9 +20,9 @@ package maintenance import ( "context" - "github.com/gravitational/trace" "strings" + "github.com/gravitational/trace" "sigs.k8s.io/controller-runtime/pkg/client" ctrllog "sigs.k8s.io/controller-runtime/pkg/log" ) diff --git a/lib/automaticupgrades/maintenance/trigger_test.go b/lib/automaticupgrades/maintenance/trigger_test.go index f0738003505d3..d376a15856fcd 100644 --- a/lib/automaticupgrades/maintenance/trigger_test.go +++ b/lib/automaticupgrades/maintenance/trigger_test.go @@ -2,9 +2,10 @@ package maintenance import ( "context" + "testing" + "github.com/gravitational/trace" "github.com/stretchr/testify/require" - "testing" ) // checkTraceError is a test helper that converts trace.IsXXXError into a require.ErrorAssertionFunc diff --git a/lib/automaticupgrades/version/proxy.go b/lib/automaticupgrades/version/proxy.go index 376565352a5b0..db55123dd529e 100644 --- a/lib/automaticupgrades/version/proxy.go +++ b/lib/automaticupgrades/version/proxy.go @@ -20,10 +20,12 @@ package version import ( "context" + + "github.com/gravitational/trace" + "github.com/gravitational/teleport/api/client/webclient" "github.com/gravitational/teleport/lib/automaticupgrades/cache" "github.com/gravitational/teleport/lib/automaticupgrades/constants" - "github.com/gravitational/trace" ) type proxyVersionClient struct { diff --git a/lib/automaticupgrades/version/versionget_test.go b/lib/automaticupgrades/version/versionget_test.go index 32214b27e7985..78f4940db229a 100644 --- a/lib/automaticupgrades/version/versionget_test.go +++ b/lib/automaticupgrades/version/versionget_test.go @@ -20,9 +20,9 @@ package version import ( "context" - "github.com/gravitational/trace" "testing" + "github.com/gravitational/trace" "github.com/stretchr/testify/require" )