update lint rules and fix some warnings

This commit is contained in:
Nicola Murino
2021-11-27 17:04:13 +01:00
parent 18ab757216
commit 3e478f42ea
9 changed files with 34 additions and 2 deletions

View File

@@ -117,6 +117,7 @@ func (t *BaseTransfer) GetFsPath() string {
return t.fsPath
}
// SetTimes stores access and modification times if fsPath matches the current file
func (t *BaseTransfer) SetTimes(fsPath string, atime time.Time, mtime time.Time) bool {
if fsPath == t.GetFsPath() {
t.aTime = atime