summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/working_tree_test.go
diff options
context:
space:
mode:
authorjiepeng <jiepengthegreat@126.com>2022-09-13 18:11:03 +0800
committerJesse Duffield <jessedduffield@gmail.com>2022-09-17 15:10:41 -0700
commitb8900baf1ada72c24e58c487122c21e80858f52a (patch)
tree64c67fecd215d00e540a5d5c2030878b92cff981 /pkg/commands/git_commands/working_tree_test.go
parentc81333fefe2f1e27ab2fcb6a0dc37d82ca47c711 (diff)
remove deprecated calls
Diffstat (limited to 'pkg/commands/git_commands/working_tree_test.go')
-rw-r--r--pkg/commands/git_commands/working_tree_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/git_commands/working_tree_test.go b/pkg/commands/git_commands/working_tree_test.go
index e4e884ce4..049961541 100644
--- a/pkg/commands/git_commands/working_tree_test.go
+++ b/pkg/commands/git_commands/working_tree_test.go
@@ -2,7 +2,7 @@ package git_commands
import (
"fmt"
- "io/ioutil"
+ "os"
"regexp"
"testing"
@@ -432,7 +432,7 @@ func TestWorkingTreeApplyPatch(t *testing.T) {
filename := matches[1]
- content, err := ioutil.ReadFile(filename)
+ content, err := os.ReadFile(filename)
assert.NoError(t, err)
assert.Equal(t, "test", string(content))