From f383cf8ddfe745764c238a82f69120c8a9dae156 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 2 Dec 2025 15:24:40 +0000 Subject: [PATCH] perf: Remove redundant fmt.Sprintf in tempproxy contains function The fmt.Sprintf("%v", s) call was pointless since s is already a string. Removing this unnecessary conversion. --- internal/tempproxy/client.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/tempproxy/client.go b/internal/tempproxy/client.go index b5ac220..5a17e02 100644 --- a/internal/tempproxy/client.go +++ b/internal/tempproxy/client.go @@ -213,7 +213,6 @@ func classifyError(err error, respError string) *ProxyError { // contains checks if any of the substrings are in the main string (case-insensitive) func contains(s string, substrs ...string) bool { - s = fmt.Sprintf("%v", s) for _, substr := range substrs { if len(s) >= len(substr) { for i := 0; i <= len(s)-len(substr); i++ {