util: Convert suffix added with AppendBackupSuffix() to simple constant

This commit is contained in:
Jöran Karl
2025-10-13 20:50:35 +02:00
parent 78d2c617ed
commit 1ce2202d9a
3 changed files with 6 additions and 8 deletions

View File

@@ -104,7 +104,7 @@ func (b *SharedBuffer) writeBackup(path string) (string, error) {
}
name := util.DetermineEscapePath(backupdir, path)
tmp := util.AppendBackupSuffix(name)
tmp := name + util.BackupSuffix
_, err := b.overwriteFile(tmp)
if err != nil {