refactor: use local function where appropriate

This commit is contained in:
tomasklaen
2023-05-18 10:15:22 +02:00
parent 10768d212d
commit e5a8bb813c
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ function get_ray_to_rectangle_distance(ax, ay, bx, by, rect)
local closest = nil
function updateDistance(distance)
local function updateDistance(distance)
if distance and (not closest or distance < closest) then closest = distance end
end