Merge pull request #101509 from thinpark/park

[k8s.io/apiserver/pkg/endpoints/discovery/]: improve readability
This commit is contained in:
Kubernetes Prow Robot 2021-04-29 18:10:28 -07:00 committed by GitHub
commit ce5ce8e290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,5 @@ func StorageVersionHash(group, version, kind string) string {
// the chance of colliding hash P(N,X) approximates to 1-e^(-(N^2)/2^(8X+1)).
// P(10,000, 8) ~= 2.7*10^(-12), which is low enough.
// See https://en.wikipedia.org/wiki/Birthday_problem#Approximations.
return base64.StdEncoding.EncodeToString(
bytes[:8])
return base64.StdEncoding.EncodeToString(bytes[:8])
}