mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-04 23:37:41 +02:00
chore: use errors.New to replace fmt.Errorf with no parameters
Signed-off-by: RiceChuan <lc582041246@gmail.com>
This commit is contained in:
parent
5e9ba82d7b
commit
c834e132c7
@ -1,7 +1,6 @@
|
|||||||
package git_commands
|
package git_commands
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/go-errors/errors"
|
"github.com/go-errors/errors"
|
||||||
@ -100,7 +99,7 @@ func TestWorkingTreeDiscardAllFileChanges(t *testing.T) {
|
|||||||
Added: true,
|
Added: true,
|
||||||
},
|
},
|
||||||
removeFile: func(string) error {
|
removeFile: func(string) error {
|
||||||
return fmt.Errorf("an error occurred when removing file")
|
return errors.New("an error occurred when removing file")
|
||||||
},
|
},
|
||||||
runner: oscommands.NewFakeRunner(t),
|
runner: oscommands.NewFakeRunner(t),
|
||||||
expectedError: "an error occurred when removing file",
|
expectedError: "an error occurred when removing file",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user