Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2019 02:35:58 +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: r345518 - head/stand/lua
Message-ID:  <201903260235.x2Q2ZwqI082014@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Tue Mar 26 02:35:58 2019
New Revision: 345518
URL: https://svnweb.freebsd.org/changeset/base/345518

Log:
  lualoader: Fix up some luacheck concerns
  
  - Garbage collect an unused (removed because it was useless) constant
  - Don't bother with vararg notation if args will not be used
  
  MFC after:	1 week

Modified:
  head/stand/lua/config.lua
  head/stand/lua/menu.lua

Modified: head/stand/lua/config.lua
==============================================================================
--- head/stand/lua/config.lua	Tue Mar 26 02:33:27 2019	(r345517)
+++ head/stand/lua/config.lua	Tue Mar 26 02:35:58 2019	(r345518)
@@ -45,7 +45,6 @@ local MSG_FAILOPENCFG = "Failed to open config: '%s'"
 local MSG_FAILREADCFG = "Failed to read config: '%s'"
 local MSG_FAILPARSECFG = "Failed to parse config: '%s'"
 local MSG_FAILEXBEF = "Failed to execute '%s' before loading '%s'"
-local MSG_FAILEXMOD = "Failed to execute '%s'"
 local MSG_FAILEXAF = "Failed to execute '%s' after loading '%s'"
 local MSG_MALFORMED = "Malformed line (%d):\n\t'%s'"
 local MSG_DEFAULTKERNFAIL = "No kernel set, failed to load from module_path"

Modified: head/stand/lua/menu.lua
==============================================================================
--- head/stand/lua/menu.lua	Tue Mar 26 02:33:27 2019	(r345517)
+++ head/stand/lua/menu.lua	Tue Mar 26 02:35:58 2019	(r345518)
@@ -494,7 +494,7 @@ function menu.autoboot(delay)
 end
 
 -- CLI commands
-function cli.menu(...)
+function cli.menu()
 	menu.run()
 end
 



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