Skip to content

Commit bdafb60

Browse files
committed
fix unit test
1 parent a133f62 commit bdafb60

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utils/utils.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77
"io/fs"
88
"os"
9-
"path/filepath"
109
"time"
1110

1211
rpcb "github.com/ava-labs/avalanche-network-runner/rpcpb"
@@ -91,7 +90,7 @@ func CheckPluginPath(pluginExec string) error {
9190
var err error
9291
if _, err = os.Stat(pluginExec); err != nil {
9392
if errors.Is(err, fs.ErrNotExist) {
94-
return fmt.Errorf("%s: %w", filepath.Base(pluginExec), ErrNotExistsPlugin)
93+
return ErrNotExistsPlugin
9594
}
9695
return fmt.Errorf("failed to stat plugin exec %q (%w)", pluginExec, err)
9796
}

0 commit comments

Comments
 (0)