rephrase empty if to make the silly linter happy

This commit is contained in:
Max Cahill 2023-08-10 16:35:42 +10:00
parent 8c1e51b057
commit 2c6b5bd2ea

View File

@ -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