mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
remove useless check in audit.go
This commit is contained in:
parent
dee81ed56a
commit
4b8abd811d
@ -139,10 +139,6 @@ func WithAudit(handler http.Handler, requestContextMapper request.RequestContext
|
|||||||
}
|
}
|
||||||
|
|
||||||
func auditStringSlice(inList []string) string {
|
func auditStringSlice(inList []string) string {
|
||||||
if len(inList) == 0 {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
quotedElements := make([]string, len(inList))
|
quotedElements := make([]string, len(inList))
|
||||||
for i, in := range inList {
|
for i, in := range inList {
|
||||||
quotedElements[i] = fmt.Sprintf("%q", in)
|
quotedElements[i] = fmt.Sprintf("%q", in)
|
||||||
|
Loading…
Reference in New Issue
Block a user