Remove error when nop exec handler is executed
This commit is contained in:
parent
6012f0f505
commit
fa76d95c04
|
@ -22,7 +22,6 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func NopReadDir(context.Context, string) ([]os.FileInfo, error) {
|
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 {
|
func NopExec(context.Context, []string) error {
|
||||||
return exec.ErrNotFound
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func NopOpen(context.Context, string, int, os.FileMode) (io.ReadWriteCloser, error) {
|
func NopOpen(context.Context, string, int, os.FileMode) (io.ReadWriteCloser, error) {
|
||||||
|
|
Loading…
Reference in New Issue