From 6d132913b9d0f6387e00834adadb6b5cf35d1ae3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 10 Aug 2023 14:51:42 +0100 Subject: [Fix] Do not set output type if list application failed --- lualib/lua_selectors/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lualib/lua_selectors/init.lua b/lualib/lua_selectors/init.lua index 6cdd11584..811c5cd50 100644 --- a/lualib/lua_selectors/init.lua +++ b/lualib/lua_selectors/init.lua @@ -121,7 +121,9 @@ local function process_selector(task, sel) end, fun.map(function(list_elt) local ret, ty = meth.process(list_elt, pt, meth.args) - etype = ty + if ret then + etype = ty + end return ret end, input))) if input and etype then -- cgit v1.2.3