Skip to content

Files

Latest commit

 

History

History
22 lines (14 loc) · 422 Bytes

Performance-LstripRstrip.md

File metadata and controls

22 lines (14 loc) · 422 Bytes

Pattern: Use of lstrip.rstrip instead of strip

Issue: -

Description

This rule identifies places where lstrip.rstrip can be replaced by strip.

Examples

# bad
'abc'.lstrip.rstrip
'abc'.rstrip.lstrip

# good
'abc'.strip

Further Reading