From 735bbc135c394f9331141d230c576cd573200682 Mon Sep 17 00:00:00 2001 From: Monis Khan Date: Thu, 30 Mar 2023 16:38:15 -0400 Subject: [PATCH] Clean up formatting Signed-off-by: Monis Khan --- plugin/pkg/auth/authenticator/token/bootstrap/bootstrap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/pkg/auth/authenticator/token/bootstrap/bootstrap.go b/plugin/pkg/auth/authenticator/token/bootstrap/bootstrap.go index f3f9a98c3a3..5a3bb738891 100644 --- a/plugin/pkg/auth/authenticator/token/bootstrap/bootstrap.go +++ b/plugin/pkg/auth/authenticator/token/bootstrap/bootstrap.go @@ -116,13 +116,13 @@ func (t *TokenAuthenticator) AuthenticateToken(ctx context.Context, token string ts := bootstrapsecretutil.GetData(secret, bootstrapapi.BootstrapTokenSecretKey) if subtle.ConstantTimeCompare([]byte(ts), []byte(tokenSecret)) != 1 { - tokenErrorf(secret, "has invalid value for key %s, expected %s.", bootstrapapi.BootstrapTokenSecretKey, tokenSecret) + tokenErrorf(secret, "has invalid value for key %s.", bootstrapapi.BootstrapTokenSecretKey) return nil, false, nil } id := bootstrapsecretutil.GetData(secret, bootstrapapi.BootstrapTokenIDKey) if id != tokenID { - tokenErrorf(secret, "has invalid value for key %s, expected %s.", bootstrapapi.BootstrapTokenIDKey, tokenID) + tokenErrorf(secret, "has invalid value for key %s.", bootstrapapi.BootstrapTokenIDKey) return nil, false, nil }