summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/file.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-09-23 23:01:40 -0700
committerGitHub <noreply@github.com>2022-09-23 23:01:40 -0700
commitfd66499c8faddc98ee9985f9b5e7e50320617410 (patch)
tree1c6e3e84ee0a912141fbda61269f5aa687bd8a9f /pkg/commands/git_commands/file.go
parente00118376879e7be6633620a8e81c81148027540 (diff)
parent3d79c6a3d3bd939259f0a37b34acc9d5a7ab4759 (diff)
Merge pull request #2167 from xiaoliwang/remove_deprecated
Diffstat (limited to 'pkg/commands/git_commands/file.go')
-rw-r--r--pkg/commands/git_commands/file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/git_commands/file.go b/pkg/commands/git_commands/file.go
index 898c26e33..111733bb7 100644
--- a/pkg/commands/git_commands/file.go
+++ b/pkg/commands/git_commands/file.go
@@ -1,7 +1,7 @@
package git_commands
import (
- "io/ioutil"
+ "os"
"strconv"
"github.com/go-errors/errors"
@@ -20,7 +20,7 @@ func NewFileCommands(gitCommon *GitCommon) *FileCommands {
// Cat obtains the content of a file
func (self *FileCommands) Cat(fileName string) (string, error) {
- buf, err := ioutil.ReadFile(fileName)
+ buf, err := os.ReadFile(fileName)
if err != nil {
return "", nil
}