mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-15 21:37:09 +09:00
util: Convert suffix added with AppendBackupSuffix() to simple constant
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user