1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-07 13:42:01 +02:00
This commit is contained in:
jiepeng 2022-09-13 18:18:22 +08:00 committed by Jesse Duffield
parent b8900baf1a
commit bc8050d8ac

View File

@ -1,7 +1,6 @@
package controllers
import (
"io/ioutil"
"os"
"github.com/jesseduffield/gocui"
@ -193,7 +192,7 @@ func (self *MergeConflictsController) HandleUndo() error {
self.c.LogAction("Restoring file to previous state")
self.c.LogCommand("Undoing last conflict resolution", false)
if err := ioutil.os(state.GetPath(), []byte(state.GetContent()), 0o644); err != nil {
if err := os.WriteFile(state.GetPath(), []byte(state.GetContent()), 0o644); err != nil {
return err
}