git: 6b35b45202d5 - stable/14 - lualoader: rename loop variable to cleanup luacheck

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Mon, 21 Jul 2025 02:13:48 UTC
The branch stable/14 has been updated by kevans:

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

commit 6b35b45202d5855aaca0f90a5d8e948ba7dc8628
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2025-06-06 14:44:15 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2025-07-21 02:12:26 +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.
    
    (cherry picked from commit d0d5415881b7ed6908a2a734d893eb870b93b33f)
---
 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 3582720f2a81..d66d9719fdcb 100644
--- a/stand/lua/core.lua
+++ b/stand/lua/core.lua
@@ -280,11 +280,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