Remove error when nop exec handler is executed
This commit is contained in:
parent
6012f0f505
commit
fa76d95c04
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue