diff options
| author | Joshua Sing <joshua@hypera.dev> | 2023-11-19 14:29:24 +1100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-01-25 17:04:12 +0000 |
| commit | 0e3f2836ef3e230ced34f5550aa937610e076531 (patch) | |
| tree | a1341a161f6592d1e3591394d6ee99037c4ac646 /git-codereview/config.go | |
| parent | 8be3abfe097ddf04b28eec2783249d29b3a48dae (diff) | |
| download | go-x-review-1.9.0.tar.xz | |
git-codereview: remove usage of io/ioutilv1.9.0
io/ioutil is now deprecated. Use non-deprecated equivalents.
Change-Id: Iad1cc9c14dbdad3a6f9ada25072bc194bace4081
Reviewed-on: https://go-review.googlesource.com/c/review/+/543615
Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'git-codereview/config.go')
| -rw-r--r-- | git-codereview/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-codereview/config.go b/git-codereview/config.go index 4e0a565..debeb5e 100644 --- a/git-codereview/config.go +++ b/git-codereview/config.go @@ -6,7 +6,7 @@ package main import ( "fmt" - "io/ioutil" + "os" "path/filepath" "strings" ) @@ -26,7 +26,7 @@ func config() map[string]string { return cachedConfig } configPath = filepath.Join(repoRoot(), "codereview.cfg") - b, err := ioutil.ReadFile(configPath) + b, err := os.ReadFile(configPath) raw := string(b) if err != nil { verbosef("%sfailed to load config from %q: %v", raw, configPath, err) |
