diff options
Diffstat (limited to 'modules/git/notes_nogogit.go')
-rw-r--r-- | modules/git/notes_nogogit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/git/notes_nogogit.go b/modules/git/notes_nogogit.go index 9a54b48106..5afe8d4614 100644 --- a/modules/git/notes_nogogit.go +++ b/modules/git/notes_nogogit.go @@ -9,7 +9,7 @@ package git import ( "context" - "io/ioutil" + "io" "strings" "code.gitea.io/gitea/modules/log" @@ -60,7 +60,7 @@ func GetNote(ctx context.Context, repo *Repository, commitID string, note *Note) _ = dataRc.Close() } }() - d, err := ioutil.ReadAll(dataRc) + d, err := io.ReadAll(dataRc) if err != nil { log.Error("Unable to read blob with ID %q. Error: %v", blob.ID, err) return err |