minikube/pkg/drivers/krunkit
Nir Soffer 50aaa372b0
krunkit: Fix linter issues (#21133)
I don't know why the linter did not complain in the CI, but running
locally revealed few issues:

    % golangci-lint run ./pkg/drivers/krunkit

    pkg/drivers/krunkit/krunkit.go:537:34: importShadow: shadow of
    imported from 'github.com/docker/machine/libmachine/state' package
    'state' (gocritic)

        func (d *Driver) setKrunkitState(state string) error {
                                     ^
    pkg/drivers/krunkit/krunkit.go:341:9: unnecessary-format:
    unnecessary use of formatting function "fmt.Errorf", you can replace
    it with "errors.New" (revive)

            return fmt.Errorf("hosts without a driver cannot start docker")
                   ^
    pkg/drivers/krunkit/krunkit.go:345:9: unnecessary-format:
    unnecessary use of formatting function "fmt.Errorf", you can replace
    it with "errors.New" (revive)

            return fmt.Errorf("hosts without a driver cannot stop docker")
                   ^
    pkg/drivers/krunkit/krunkit.go:444:18: func (*Driver).logfilePath is
    unused (unused)

        func (d *Driver) logfilePath() string {
                     ^
2025-07-25 15:39:44 -07:00
..
krunkit.go krunkit: Fix linter issues (#21133) 2025-07-25 15:39:44 -07:00