From fa76d95c042583cc8b1affe3a5190efe2dd1aa30 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Fri, 30 Sep 2022 16:22:27 -0700 Subject: [PATCH] Remove error when nop exec handler is executed --- internal/shutils/nop.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/shutils/nop.go b/internal/shutils/nop.go index 8c4d905..b47bac7 100644 --- a/internal/shutils/nop.go +++ b/internal/shutils/nop.go @@ -22,7 +22,6 @@ import ( "context" "io" "os" - "os/exec" ) func NopReadDir(context.Context, string) ([]os.FileInfo, error) { @@ -34,7 +33,7 @@ func NopStat(context.Context, string, bool) (os.FileInfo, error) { } func NopExec(context.Context, []string) error { - return exec.ErrNotFound + return nil } func NopOpen(context.Context, string, int, os.FileMode) (io.ReadWriteCloser, error) {