From 23ebec717c61f42500ad91f3ff0d2a017b8dbe38 Mon Sep 17 00:00:00 2001 From: greatroar <61184462+greatroar@users.noreply.github.com> Date: Sat, 30 Jul 2022 12:57:18 +0200 Subject: [PATCH] Remove stale comments from backend/sftp The preExec and postExec functions were removed in 0bdb131521f84ebce3541f8ccd684c93892b5e66 from 2018. --- internal/backend/sftp/sftp.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/backend/sftp/sftp.go b/internal/backend/sftp/sftp.go index 71cdcaa24..e0edb807c 100644 --- a/internal/backend/sftp/sftp.go +++ b/internal/backend/sftp/sftp.go @@ -116,8 +116,7 @@ func (r *SFTP) clientError() error { } // Open opens an sftp backend as described by the config by running -// "ssh" with the appropriate arguments (or cfg.Command, if set). The function -// preExec is run just before, postExec just after starting a program. +// "ssh" with the appropriate arguments (or cfg.Command, if set). func Open(ctx context.Context, cfg Config) (*SFTP, error) { debug.Log("open backend with config %#v", cfg) @@ -214,8 +213,7 @@ func buildSSHCommand(cfg Config) (cmd string, args []string, err error) { } // Create creates an sftp backend as described by the config by running "ssh" -// with the appropriate arguments (or cfg.Command, if set). The function -// preExec is run just before, postExec just after starting a program. +// with the appropriate arguments (or cfg.Command, if set). func Create(ctx context.Context, cfg Config) (*SFTP, error) { cmd, args, err := buildSSHCommand(cfg) if err != nil {