From 20015d419e5da58ea2d24550e6c57b27ddf8c389 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sun, 14 Jan 2024 15:41:22 +0800 Subject: [PATCH] fix update message, amend #31 --- lua/dyn_menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/dyn_menu.lua b/lua/dyn_menu.lua index ac5cce4..8248144 100644 --- a/lua/dyn_menu.lua +++ b/lua/dyn_menu.lua @@ -470,7 +470,7 @@ mp.register_script_message('update', function(keyword, json) local data, err = utils.parse_json(json) if err then msg.error('update: failed to parse json:', err) end - if not data or #data == 0 then + if not data then msg.warn('update: ignored message with invalid json:', json) return end