Commit 4b8abd81 authored by xilabao's avatar xilabao

remove useless check in audit.go

parent dee81ed5
...@@ -139,10 +139,6 @@ func WithAudit(handler http.Handler, requestContextMapper request.RequestContext ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment