Skip to content

Commit c3281ca

Browse files
committed
fixup: Use errors.Is instead of os.IsNotExist
1 parent fc9a9f7 commit c3281ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/fixture/tmpnet/start_kind_cluster.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ package tmpnet
55

66
import (
77
"context"
8+
"errors"
89
"fmt"
10+
"io/fs"
911
"os"
1012
"os/exec"
1113
"strings"
@@ -72,7 +74,7 @@ func isKindClusterRunning(log logging.Logger, configPath string) (bool, error) {
7274
configContext := KindKubeconfigContext
7375

7476
_, err := os.Stat(configPath)
75-
if os.IsNotExist(err) {
77+
if errors.Is(err, fs.ErrNotExist) {
7678
log.Info("specified kubeconfig path does not exist",
7779
zap.String("kubeconfig", configPath),
7880
)

0 commit comments

Comments
 (0)