Skip to content

Commit

Permalink
Switch from deprecated ioutil.ReadAll to io.ReadAll
Browse files Browse the repository at this point in the history
  • Loading branch information
leotaku committed Sep 26, 2023
1 parent f2230eb commit 7d59bc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pdb/pdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"bytes"
"encoding/binary"
"io"
"io/ioutil"
"time"
)

Expand Down Expand Up @@ -104,7 +103,7 @@ func (d Database) Write(w io.Writer) error {

// ReadDatabase reads an uninterpreted Palm database from r.
func ReadDatabase(r io.Reader) (*Database, error) {
data, err := ioutil.ReadAll(r)
data, err := io.ReadAll(r)
b := bytes.NewReader(data)
if err != nil {
return nil, err
Expand Down

0 comments on commit 7d59bc4

Please sign in to comment.