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

@@ -250,7 +250,7 @@ func LoadInput(args []string) []*buffer.Buffer {
func checkBackup(name string) error {
target := filepath.Join(config.ConfigDir, name)
backup := util.AppendBackupSuffix(target)
backup := target + util.BackupSuffix
if info, err := os.Stat(backup); err == nil {
input, err := os.ReadFile(backup)
if err == nil {