diff options
author | guoguangwu <guoguangwug@gmail.com> | 2024-04-26 15:24:28 +0800 |
---|---|---|
committer | sudoforge <no-reply@sudoforge.com> | 2024-07-23 20:22:15 -0700 |
commit | d4f6f273bc36d8ce376cd7aee794458011fee2e0 (patch) | |
tree | bd2f95e167152d7554b10acd29d353370913e6f6 /bridge/github/export.go | |
parent | 1fa858dcf4c4e7b572316705d70c08545abae7ff (diff) | |
download | git-bug-d4f6f273bc36d8ce376cd7aee794458011fee2e0.tar.gz |
chore: remove refs to deprecated io/ioutil
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
chore: remove refs to deprecated io/ioutil
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
Diffstat (limited to 'bridge/github/export.go')
-rw-r--r-- | bridge/github/export.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/github/export.go b/bridge/github/export.go index 0d340b49..30e064c0 100644 --- a/bridge/github/export.go +++ b/bridge/github/export.go @@ -5,7 +5,7 @@ import ( "context" "encoding/json" "fmt" - "io/ioutil" + "io" "net/http" "os" "strings" @@ -452,7 +452,7 @@ func getRepositoryNodeID(ctx context.Context, token *auth.Token, owner, project NodeID string `json:"node_id"` }{} - data, _ := ioutil.ReadAll(resp.Body) + data, _ := io.ReadAll(resp.Body) err = resp.Body.Close() if err != nil { return "", err @@ -564,7 +564,7 @@ func (ge *githubExporter) createGithubLabel(ctx context.Context, label, color st Color string `json:"color"` }{} - data, _ = ioutil.ReadAll(resp.Body) + data, _ = io.ReadAll(resp.Body) defer resp.Body.Close() err = json.Unmarshal(data, &aux) |