Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2018 03:48:53 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329902 - head/stand/lua
Message-ID:  <201802240348.w1O3mriA072785@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Sat Feb 24 03:48:52 2018
New Revision: 329902
URL: https://svnweb.freebsd.org/changeset/base/329902

Log:
  lualoader: Remove unused variable; we now use the effective line number

Modified:
  head/stand/lua/drawer.lua

Modified: head/stand/lua/drawer.lua
==============================================================================
--- head/stand/lua/drawer.lua	Sat Feb 24 03:47:04 2018	(r329901)
+++ head/stand/lua/drawer.lua	Sat Feb 24 03:48:52 2018	(r329902)
@@ -277,7 +277,7 @@ function drawer.drawmenu(m)
 	if type(menu_entries) == "function" then
 		menu_entries = menu_entries()
 	end
-	for line_num, e in ipairs(menu_entries) do
+	for _, e in ipairs(menu_entries) do
 		-- Allow menu items to be conditionally visible by specifying
 		-- a visible function.
 		if e.visible ~= nil and not e.visible() then



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802240348.w1O3mriA072785>