Skip to content

Commit 2d7de01

Browse files
committed
secure/precis: replace bytes.Compare with bytes.Equal
Signed-off-by: cui fliter <[email protected]>
1 parent 795e854 commit 2d7de01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

secure/precis/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func (p *Profile) Compare(a, b string) bool {
316316
return false
317317
}
318318

319-
return bytes.Compare(akey, bkey) == 0
319+
return bytes.Equal(akey, bkey)
320320
}
321321

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

0 commit comments

Comments
 (0)