From be214937fc391cf8c0c31e52a29b0adbdcd81f08 Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Tue, 5 Nov 2024 18:42:25 +0300 Subject: [PATCH] updater: upd doc --- internal/updater/updater.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/updater/updater.go b/internal/updater/updater.go index 173f0071912..85cb69b0063 100644 --- a/internal/updater/updater.go +++ b/internal/updater/updater.go @@ -297,8 +297,7 @@ func (u *Updater) replace() error { } if u.goos == "windows" { - // Use copy, since renaming fails with "File in use" error. Also use - // directory permissions for the file, that should be executable. + // Use copy, since renaming fails with "File in use" error. err = copyFile(u.updateExeName, u.currentExeName, aghos.DefaultPermExe) } else { err = os.Rename(u.updateExeName, u.currentExeName)