LGTM warning: Comparison result is always the same