summaryrefslogtreecommitdiff
path: root/numpy/array_api/_creation_functions.py
diff options
context:
space:
mode:
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2021-09-24 14:04:34 +0200
committerDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2021-09-24 19:06:16 +0200
commit580bbdfe48327ec3c36bf33faeb9d0c53658dfb0 (patch)
tree603771c47a285dea709c98166d606ed41caae714 /numpy/array_api/_creation_functions.py
parent0cf5bc092f801a4c004ecdb7d1061f46aaab4ff4 (diff)
downloadnumpy-580bbdfe48327ec3c36bf33faeb9d0c53658dfb0.tar.gz
MAINT: Fix LGTM.com warning
Comparison result is always the same Comparison is always false because res <= 0. Indeed the for(;;) iteration may stop on 3 different breaks: res = -1; break; if (!res) { break; if (!res) { break; Therefore, after the loop, the only possible values for res are -1 and 0, and (res > 0) is always false. This originates in 37dc69c (#17029).
Diffstat (limited to 'numpy/array_api/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions