mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-09 13:47:11 +02:00
typo
This commit is contained in:
parent
b8900baf1a
commit
bc8050d8ac
@ -1,7 +1,6 @@
|
|||||||
package controllers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/jesseduffield/gocui"
|
"github.com/jesseduffield/gocui"
|
||||||
@ -193,7 +192,7 @@ func (self *MergeConflictsController) HandleUndo() error {
|
|||||||
|
|
||||||
self.c.LogAction("Restoring file to previous state")
|
self.c.LogAction("Restoring file to previous state")
|
||||||
self.c.LogCommand("Undoing last conflict resolution", false)
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user