refactor: Remove unused cleanupFAQKnowledge function and optimize log sanitization in security utility

This commit is contained in:
wizardchen
2025-11-27 15:15:36 +08:00
parent 1bd207ecb1
commit 0550d3669a
2 changed files with 3 additions and 29 deletions
+3 -2
View File
@@ -210,9 +210,10 @@ func SanitizeForLogArray(input []string) []string {
return []string{}
}
sanitized := make([]string, 0, len(input))
for _, item := range input {
input = append(input, SanitizeForLog(item))
sanitized = append(sanitized, SanitizeForLog(item))
}
return input
return sanitized
}