From 39b5f8728fdd215217d2749c20a2668ecbb5f080 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 16 Mar 2015 16:55:12 -0400 Subject: Code cleanup based on the output of luacheck, a Lua linter. --- core/ui.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/ui.lua') diff --git a/core/ui.lua b/core/ui.lua index c6244ea2..1da1b159 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -43,7 +43,7 @@ local theme_props = {} -- @see ui._print local function _print(buffer_type, ...) local print_buffer - for i, buffer in ipairs(_BUFFERS) do + for _, buffer in ipairs(_BUFFERS) do if buffer._type == buffer_type then print_buffer = buffer break end end if not print_buffer then @@ -85,7 +85,7 @@ function ui._print(buffer_type, ...) pcall(_print, buffer_type, ...) end function ui.print(...) ui._print(_L['[Message Buffer]'], ...) end -- Documentation is in core/.ui.dialogs.luadoc. -ui.dialogs = setmetatable({}, {__index = function(t, k) +ui.dialogs = setmetatable({}, {__index = function(_, k) -- Wrapper for `ui.dialog(k)`, transforming the given table of arguments into -- a set of command line arguments and transforming the resulting standard -- output into Lua objects. -- cgit v1.2.3