mirror of
https://github.com/restic/restic.git
synced 2026-06-24 17:44:17 +00:00
fs: cleanup CommandReader implementation
This commit is contained in:
@@ -728,5 +728,5 @@ func prepareStdinCommand(ctx context.Context, args []string) (io.ReadCloser, err
|
||||
if err := command.Start(); err != nil {
|
||||
return nil, errors.Wrap(err, "command.Start")
|
||||
}
|
||||
return &fs.ReadCloserCommand{Cmd: command, Stdout: stdout}, nil
|
||||
return fs.NewCommandReader(command, stdout), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user