secure/precis: replace bytes.Compare with bytes.Equal Change-Id: Ifa6ba05253b38e1cb3d5791e62b36a523fb68e52 GitHub-Last-Rev: 2d7de01c3d93285224e3c65f55845a316da8f4d0 GitHub-Pull-Request: golang/text#36 Reviewed-on: https://go-review.googlesource.com/c/text/+/438559 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
diff --git a/secure/precis/profile.go b/secure/precis/profile.go index 35bd6f0..bdd991b 100644 --- a/secure/precis/profile.go +++ b/secure/precis/profile.go
@@ -316,7 +316,7 @@ 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