format imports

This commit is contained in:
Sergey Kanzhelev
2025-08-13 16:56:32 +00:00
parent 414d24893b
commit 75bf501888
38 changed files with 95 additions and 81 deletions
+1 -1
View File
@@ -22,8 +22,8 @@ import (
"os"
"github.com/spf13/pflag"
"k8s.io/klog/v2"
"k8s.io/node-problem-detector/cmd/healthchecker/options"
"k8s.io/node-problem-detector/pkg/custompluginmonitor/types"
"k8s.io/node-problem-detector/pkg/healthchecker"
@@ -71,8 +71,7 @@ func init() {
})
}
type nullExporter struct {
}
type nullExporter struct{}
func (ne *nullExporter) ExportProblems(*types.Status) {
}
@@ -96,7 +95,7 @@ func writeTempFile(t *testing.T, ext string, contents string) (string, error) {
fileName := f.Name()
if err := os.WriteFile(fileName, []byte(contents), 0644); err != nil {
if err := os.WriteFile(fileName, []byte(contents), 0o644); err != nil {
os.Remove(fileName)
return "", fmt.Errorf("cannot write config to temp file %s, %v", fileName, err)
}
@@ -24,6 +24,7 @@ import (
"github.com/spf13/pflag"
"k8s.io/klog/v2"
"k8s.io/node-problem-detector/cmd/options"
)
+1 -2
View File
@@ -19,11 +19,10 @@ package options
import (
"flag"
"fmt"
"net/url"
"os"
"time"
"net/url"
"github.com/spf13/pflag"
"k8s.io/node-problem-detector/pkg/exporters"