From owner-svn-src-head@freebsd.org Thu Oct 1 14:20:38 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 00CF3429C4C; Thu, 1 Oct 2020 14:20:38 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C2Fdx6BDnz4CB7; Thu, 1 Oct 2020 14:20:37 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B792411FC3; Thu, 1 Oct 2020 14:20:37 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 091EKb9O043513; Thu, 1 Oct 2020 14:20:37 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 091EKb1x043510; Thu, 1 Oct 2020 14:20:37 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <202010011420.091EKb1x043510@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Thu, 1 Oct 2020 14:20:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r366314 - head/stand/lua X-SVN-Group: head X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: head/stand/lua X-SVN-Commit-Revision: 366314 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2020 14:20:38 -0000 Author: kevans Date: Thu Oct 1 14:20:36 2020 New Revision: 366314 URL: https://svnweb.freebsd.org/changeset/base/366314 Log: lualoader: clear up some luacheck warnings - One (1) unused argument - One (1) trailing whitespace - Two (2) "non-standard global" (curenv, rewind) tools/boot/lua-lint.sh is once again happy. Modified: head/stand/lua/cli.lua head/stand/lua/core.lua head/stand/lua/menu.lua Modified: head/stand/lua/cli.lua ============================================================================== --- head/stand/lua/cli.lua Thu Oct 1 13:29:29 2020 (r366313) +++ head/stand/lua/cli.lua Thu Oct 1 14:20:36 2020 (r366314) @@ -130,7 +130,7 @@ cli['read-conf'] = function(...) config.readConf(assert(core.popFrontTable(argv))) end -cli['reload-conf'] = function(...) +cli['reload-conf'] = function() config.reload() end Modified: head/stand/lua/core.lua ============================================================================== --- head/stand/lua/core.lua Thu Oct 1 13:29:29 2020 (r366313) +++ head/stand/lua/core.lua Thu Oct 1 14:20:36 2020 (r366314) @@ -319,7 +319,7 @@ function core.bootenvDefaultRewinded() end for curenv_idx = 0, bootenv_count - 1 do - curenv = loader.getenv("bootenvs_check[" .. curenv_idx .. "]") + local curenv = loader.getenv("bootenvs_check[" .. curenv_idx .. "]") if curenv == defname then return defname end Modified: head/stand/lua/menu.lua ============================================================================== --- head/stand/lua/menu.lua Thu Oct 1 13:29:29 2020 (r366313) +++ head/stand/lua/menu.lua Thu Oct 1 14:20:36 2020 (r366314) @@ -232,7 +232,7 @@ menu.welcome = { multi_user = multi_user, } else - single_user = alts.single_user + single_user = alts.single_user multi_user = alts.multi_user end boot_entry_1, boot_entry_2 = single_user, multi_user @@ -352,7 +352,7 @@ menu.welcome = { zpool_checkpoints = { entry_type = core.MENU_ENTRY, name = function() - rewind = "No" + local rewind = "No" if core.isRewinded() then rewind = "Yes" end