From bf0b3f8845d44f85aa899083d5feb335ac507f7d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 8 Feb 2023 19:06:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- plugins/automelt.cpp | 2 +- plugins/lua/automelt.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/automelt.cpp b/plugins/automelt.cpp index ca0cf1626..862507413 100644 --- a/plugins/automelt.cpp +++ b/plugins/automelt.cpp @@ -568,7 +568,7 @@ static void push_stockpile_config(lua_State *L, PersistentDataItem &c) { } static void emplace_bulk_stockpile_config(lua_State *L, int id, bool monitored, map> &stockpiles) { - + map stockpile_config; stockpile_config.emplace("id", id); stockpile_config.emplace("monitored", monitored); diff --git a/plugins/lua/automelt.lua b/plugins/lua/automelt.lua index 395934867..cbd1bd538 100644 --- a/plugins/lua/automelt.lua +++ b/plugins/lua/automelt.lua @@ -66,7 +66,7 @@ function getItemCountsAndStockpileConfigs() ret.premarked_item_counts = table.remove(data, 1) local unparsed_stockpile_configs = table.remove(data, 1) ret.stockpile_configs = {} - + for idx,c in pairs(unparsed_stockpile_configs) do if not c.id or c.id == -1 then c.name = "ERROR" @@ -79,7 +79,7 @@ function getItemCountsAndStockpileConfigs() c.monitored = c.monitored ~= 0 end table.insert(ret.stockpile_configs, c) - + end return ret end