Inspectopedia
 
2024.3

Call chain on collection type can be simplified

Info
New
Last modified: 03 December 2024

Reports two-call chains replaceable by a single call.

It can help you to avoid redundant code execution.

The quick-fix replaces the call chain with a single call.

Example:

After the quick-fix is applied: