Skip to content

CAT 047

unurgunite edited this page Jul 11, 2026 · 3 revisions

CAT-047 — upcase.downcase / downcase.upcase no-op

Field Value
Severity hint
Confidence high
Auto-fix

upcase.downcase / downcase.upcase no-op — Calling upcase then downcase (or vice versa) is a no-op. Remove unnecessary calls.

Bad code

str.upcase.downcase
str.downcase.upcase

Clone this wiki locally