mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
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.
This commit is contained in:
@@ -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++ {
|
||||
|
||||
Reference in New Issue
Block a user