mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-22 14:14:36 +00:00
rephrase empty if to make the silly linter happy
This commit is contained in:
parent
8c1e51b057
commit
2c6b5bd2ea
@ -262,9 +262,7 @@ function intersect.line_line_collide(a_start, a_end, a_rad, b_start, b_end, b_ra
|
|||||||
local best_len = nil
|
local best_len = nil
|
||||||
for _, v in ipairs(search_tab) do
|
for _, v in ipairs(search_tab) do
|
||||||
local delta = v[1]
|
local delta = v[1]
|
||||||
if delta.x == math.huge then
|
if delta.x ~= math.huge then
|
||||||
--skip
|
|
||||||
else
|
|
||||||
local len = delta:length_squared()
|
local len = delta:length_squared()
|
||||||
if len < (best_len or math.huge) then
|
if len < (best_len or math.huge) then
|
||||||
best = v
|
best = v
|
||||||
|
Loading…
Reference in New Issue
Block a user