mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-09-02 15:17:28 -04:00
Fix unused error values
This commit is contained in:
@@ -267,6 +267,9 @@ func sftpSync(sshClient *ssh.Client, sshEntryRoot string, sshIsWindows bool, dow
|
|||||||
|
|
||||||
// set the modification time of the local file to match the value saved from the remote file (from before the download)
|
// set the modification time of the local file to match the value saved from the remote file (from before the download)
|
||||||
err = os.Chtimes(localEntryFullPath, time.Now(), modTime)
|
err = os.Chtimes(localEntryFullPath, time.Now(), modTime)
|
||||||
|
if err != nil {
|
||||||
|
return errors.New("unable to set local file modification time: " + err.Error())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if filesTransferred {
|
if filesTransferred {
|
||||||
@@ -326,6 +329,9 @@ func sftpSync(sshClient *ssh.Client, sshEntryRoot string, sshIsWindows bool, dow
|
|||||||
|
|
||||||
// set the modification time of the remote file to match the value saved from the local file (from before the upload)
|
// set the modification time of the remote file to match the value saved from the local file (from before the upload)
|
||||||
err = sftpClient.Chtimes(remoteEntryFullPath, time.Now(), modTime)
|
err = sftpClient.Chtimes(remoteEntryFullPath, time.Now(), modTime)
|
||||||
|
if err != nil {
|
||||||
|
return errors.New("unable to set remote file modification time: " + err.Error())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if filesTransferred {
|
if filesTransferred {
|
||||||
|
|||||||
Reference in New Issue
Block a user