Commit ca32899
perf: Remove redundant Contains check in SecretObfuscator
The Contains check was redundant because StringBuilder.Replace already
handles the case where the search string doesn't exist. Additionally,
the check was done on the original input string while Replace operates
on the StringBuilder, creating an inconsistency after the first
replacement.
Fixes #1549
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent b78a2ea commit ca32899
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
0 commit comments