Redundant array length check

Last modified: 03 December 2024

Reports unnecessary array length checks followed by array iteration. When array length is zero, the iteration will be skipped anyway, so there's no need to check length explicitly.

Example:

A quick-fix is suggested to unwrap or remove the length check:

New in 2022.3