From 4b744e243c13644789fe990e9ac6b63b80eab4d9 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Tue, 7 Jul 2020 18:24:18 +0200 Subject: [PATCH] Code tidy --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index a0a5653..989fa3b 100644 --- a/init.lua +++ b/init.lua @@ -705,8 +705,8 @@ local function cache_recipes(item) local def = reg_items[item] if not def then return end - local recipes = get_all_recipes(item) or {} - if #recipes > 0 then + local recipes = get_all_recipes(item) + if recipes then recipes_cache[item] = recipes end