PR adds a check for a pattern from a recent PR review - with x being a slice (or map), an erroneous check for x == nil && len(x) > 0, two contradictory conditions that cannot be true at the same time, since the length of a nil slice or map is defined to be 0:
PR adds a check for a pattern from a recent PR review - with
x
being a slice (or map), an erroneous check forx == nil && len(x) > 0
, two contradictory conditions that cannot be true at the same time, since the length of a nil slice or map is defined to be 0:0
."