Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 514f384

Browse files
committed
Use bytes.Equal
1 parent 8e1b411 commit 514f384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/create-user/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func readPassword(s *bufio.Scanner) ([]byte, error) {
7979
}
8080
fmt.Println()
8181

82-
if bytes.Compare(p, rp) == 0 {
82+
if bytes.Equal(p, rp) {
8383
d, err := bcrypt.GenerateFromPassword(p, bcrypt.DefaultCost)
8484
if err != nil {
8585
return nil, errors.WithStack(err)

0 commit comments

Comments
 (0)