From a550e0eb991fd31ba1209743da40dcd24ee4b041 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 14 Jan 2020 21:41:43 -0300 Subject: cfg: remove redundant assignment --- src/luarocks/core/cfg.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index ffa6964a..b3561422 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua @@ -665,8 +665,6 @@ function cfg.init(detected, warning) -- Let's finish up the cfg table. ---------------------------------------- - cfg.variables.LUA_DIR = detected.given_lua_dir or cfg.variables.LUA_DIR - -- Settings given via the CLI (i.e. --lua-dir) take precedence over config files. cfg.project_dir = detected.given_project_dir or cfg.project_dir cfg.lua_version = detected.given_lua_version or cfg.lua_version -- cgit v1.2.3-55-g6feb