Skip to content

Commit

Permalink
fix: replace deprecated ioutil usage with io
Browse files Browse the repository at this point in the history
  • Loading branch information
joeslazaro committed Apr 9, 2024
1 parent 224283f commit 3a3242c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions argon2id.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"encoding/base64"
"errors"
"fmt"
"io/ioutil"
"io"
"runtime"
"strings"

Expand Down Expand Up @@ -172,7 +172,8 @@ func DecodeHash(hash string) (params *Params, salt, key []byte, err error) {
return nil, nil, nil, err
}

rest, err := ioutil.ReadAll(r)
rest, err := io.ReadAll(r)

if err != nil {
return nil, nil, nil, err
}
Expand Down

0 comments on commit 3a3242c

Please sign in to comment.