aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2020-01-14 21:41:43 -0300
committerHisham Muhammad <hisham@gobolinux.org>2020-01-14 22:48:08 -0300
commita550e0eb991fd31ba1209743da40dcd24ee4b041 (patch)
tree2b749a81b00db7fb2788f04aec6c46075236f8b2
parent6150ac7eccf4c01d06f535b365c946dbf4145f52 (diff)
downloadluarocks-a550e0eb991fd31ba1209743da40dcd24ee4b041.tar.gz
luarocks-a550e0eb991fd31ba1209743da40dcd24ee4b041.tar.bz2
luarocks-a550e0eb991fd31ba1209743da40dcd24ee4b041.zip
cfg: remove redundant assignment
-rw-r--r--src/luarocks/core/cfg.lua2
1 files changed, 0 insertions, 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)
665 -- Let's finish up the cfg table. 665 -- Let's finish up the cfg table.
666 ---------------------------------------- 666 ----------------------------------------
667 667
668 cfg.variables.LUA_DIR = detected.given_lua_dir or cfg.variables.LUA_DIR
669
670 -- Settings given via the CLI (i.e. --lua-dir) take precedence over config files. 668 -- Settings given via the CLI (i.e. --lua-dir) take precedence over config files.
671 cfg.project_dir = detected.given_project_dir or cfg.project_dir 669 cfg.project_dir = detected.given_project_dir or cfg.project_dir
672 cfg.lua_version = detected.given_lua_version or cfg.lua_version 670 cfg.lua_version = detected.given_lua_version or cfg.lua_version