Commit 8dcf7ec
perf: Remove redundant Contains check in SecretObfuscator (#1715)
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 f05c924 commit 8dcf7ec
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