From 33506582c671e24d707ecc46c5bccbd44e41c2d2 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 26 Jun 2019 13:29:42 +0200 Subject: [PATCH] xrandr.lua: Remove useless use of unpack() This code would have to check if unpack or table.unpack is the function to use. Instead of adding this check, this commit just removes the trivial use of unpack. Fixes: https://github.com/awesomeWM/awesome/issues/2802 Signed-off-by: Uli Schlachter --- recipes/xrandr.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/xrandr.lua b/recipes/xrandr.lua index 59bf69e..1149910 100644 --- a/recipes/xrandr.lua +++ b/recipes/xrandr.lua @@ -118,7 +118,7 @@ local function xrandr() label = "Keep the current configuration" state.index = nil else - label, action = unpack(next) + label, action = next[1], next[2] end state.cid = naughty.notify({ text = label, icon = icon_path,