Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: hunter007 <[email protected]>
  • Loading branch information
hunter007 committed Sep 20, 2023
1 parent 04db85f commit 4ca1d1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hunter007/password

go 1.18
go 1.13

require golang.org/x/crypto v0.9.0

Expand Down
5 changes: 3 additions & 2 deletions validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package password

import (
"errors"
"io/ioutil"
"io"
"net/http"
"strings"
"unicode"
Expand Down Expand Up @@ -37,7 +37,8 @@ func (opt *ValidatorOption) loadCommonPasswords() error {
return err
}
defer resp.Body.Close()
bs, err := ioutil.ReadAll(resp.Body)

bs, err := io.ReadAll(resp.Body)
if err != nil {
return err
}
Expand Down

0 comments on commit 4ca1d1e

Please sign in to comment.