Remove error when nop exec handler is executed

This commit is contained in:
Elara 2022-09-30 16:22:27 -07:00
parent 6012f0f505
commit fa76d95c04
1 changed files with 1 additions and 2 deletions

View File

@ -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) {