diff --git a/staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go b/staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go index e920a620623..70faf8ea67e 100644 --- a/staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go +++ b/staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go @@ -139,10 +139,6 @@ func WithAudit(handler http.Handler, requestContextMapper request.RequestContext } func auditStringSlice(inList []string) string { - if len(inList) == 0 { - return "" - } - quotedElements := make([]string, len(inList)) for i, in := range inList { quotedElements[i] = fmt.Sprintf("%q", in)