Skip to content

Commit

Permalink
secure/precis: replace bytes.Compare with bytes.Equal
Browse files Browse the repository at this point in the history
Signed-off-by: cui fliter <imcusg@gmail.com>
  • Loading branch information
cuishuang committed Oct 4, 2022
1 parent 795e854 commit 2d7de01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secure/precis/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func (p *Profile) Compare(a, b string) bool {
return false
}

return bytes.Compare(akey, bkey) == 0
return bytes.Equal(akey, bkey)
}

// Allowed returns a runes.Set containing every rune that is a member of the
Expand Down

0 comments on commit 2d7de01

Please # to comment.