Skip to content

Commit 7f0f76e

Browse files
committed
adding gofumpt fix update
1 parent 1e09248 commit 7f0f76e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

internal/mode/static/manager.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ const (
6262
clusterTimeout = 10 * time.Second
6363
)
6464

65-
var scheme = runtime.NewScheme()
66-
var processHandler = &ngxruntime.ProcessHandlerImpl{}
65+
var (
66+
scheme = runtime.NewScheme()
67+
processHandler = &ngxruntime.ProcessHandlerImpl{}
68+
)
6769

6870
func init() {
6971
utilruntime.Must(gatewayv1beta1.Install(scheme))

internal/mode/static/nginx/runtime/manager.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ type ProcessHandler interface {
4545
EnsureNginxRunning(ctx context.Context) error
4646
}
4747

48-
type ProcessHandlerImpl struct {
49-
}
48+
type ProcessHandlerImpl struct{}
5049

5150
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . Manager
5251

internal/mode/static/nginx/runtime/manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var _ = Describe("NGINX Runtime Manager", func() {
3737

3838
BeforeEach(func() {
3939
upstreamServers = []ngxclient.UpstreamServer{
40-
ngxclient.UpstreamServer{},
40+
{},
4141
}
4242
})
4343

0 commit comments

Comments
 (0)