The branch main has been updated by kevans:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d0d5415881b7ed6908a2a734d893eb870b93b33f

commit d0d5415881b7ed6908a2a734d893eb870b93b33f
Author:     Kyle Evans <kev...@freebsd.org>
AuthorDate: 2025-06-06 14:44:15 +0000
Commit:     Kyle Evans <kev...@freebsd.org>
CommitDate: 2025-06-06 14:44:37 +0000

    lualoader: rename loop variable to cleanup luacheck
    
    This shadows an `i` used for indexing earlier in the function, and we
    don't care that much about the name.
---
 stand/lua/core.lua | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/stand/lua/core.lua b/stand/lua/core.lua
index 5976cc65156d..f42be6fbebb7 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -282,11 +282,11 @@ function core.kernelList()
        -- actually find any kernels, we just assume that they know what they're
        -- doing and leave it alone.
        if default_kernel and not present[default_kernel] and #kernels > 1 then
-               for i = 1, #kernels do
-                       if i == #kernels then
-                               kernels[i] = nil
+               for n = 1, #kernels do
+                       if n == #kernels then
+                               kernels[n] = nil
                        else
-                               kernels[i] = kernels[i + 1]
+                               kernels[n] = kernels[n + 1]
                        end
                end
        end

Reply via email to