From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id AFC5A469711 for ; Mon, 8 Jun 2020 13:45:17 +0300 (MSK) Received: by mail-lj1-f180.google.com with SMTP id a9so16275942ljn.6 for ; Mon, 08 Jun 2020 03:45:17 -0700 (PDT) From: Cyrill Gorcunov Date: Mon, 8 Jun 2020 13:44:49 +0300 Message-Id: <20200608104450.157253-3-gorcunov@gmail.com> In-Reply-To: <20200608104450.157253-1-gorcunov@gmail.com> References: <20200608104450.157253-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 2/3] lua/cfg: drop redundant variable List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml No need for variable v, we use module_cfg itself. Part-of #689 Signed-off-by: Cyrill Gorcunov --- src/box/lua/load_cfg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/box/lua/load_cfg.lua b/src/box/lua/load_cfg.lua index 7a77b93f5..7dc40a47f 100644 --- a/src/box/lua/load_cfg.lua +++ b/src/box/lua/load_cfg.lua @@ -494,7 +494,7 @@ local function apply_default_cfg(cfg, default_cfg, module_cfg) apply_default_cfg(cfg[k], v) end end - for k, v in pairs(module_cfg) do + for k in pairs(module_cfg) do if cfg[k] == nil then cfg[k] = module_cfg[k].cfg_get(k) end -- 2.26.2