From 116101df45b7bb447da8b6b436227a1fc61384aa Mon Sep 17 00:00:00 2001 From: Ro Santalla Date: Fri, 9 Feb 2024 12:24:00 +0100 Subject: [PATCH] run gofumpt --- pkg/runtime/profiler/memory.go | 1 - pkg/testutils/cluster/cluster.go | 1 - 2 files changed, 2 deletions(-) diff --git a/pkg/runtime/profiler/memory.go b/pkg/runtime/profiler/memory.go index 8a4a89b7..1d165d80 100644 --- a/pkg/runtime/profiler/memory.go +++ b/pkg/runtime/profiler/memory.go @@ -39,7 +39,6 @@ func NewMemoryProbe(config MemoryConfig) (Probe, error) { func (m *memoryProbe) Start() (io.Closer, error) { var err error m.file, err = os.Create(m.config.FileName) - if err != nil { return nil, fmt.Errorf("error creating memory profiling file %q: %w", m.config.FileName, err) } diff --git a/pkg/testutils/cluster/cluster.go b/pkg/testutils/cluster/cluster.go index b9ea3800..3632aba3 100644 --- a/pkg/testutils/cluster/cluster.go +++ b/pkg/testutils/cluster/cluster.go @@ -264,7 +264,6 @@ func (c *Config) Create() (*Cluster, error) { c.name, kindOptions..., ) - if err != nil { return nil, err }