Revolyssup commented on code in PR #9846:
URL: https://github.com/apache/apisix/pull/9846#discussion_r1264937436
##########
apisix/cli/file.lua:
##########
@@ -223,7 +223,12 @@ function _M.read_yaml_conf(apisix_home)
return nil, "invalid config-default.yaml file"
end
- local_conf_path = profile:yaml_path("config")
+ local customized_conf_path = profile:customized_config_path()
+ if customized_conf_path then
+ local_conf_path = customized_conf_path
Review Comment:
instead of creating another variable `customized_conf_path`
Can you not directly do here `local_conf_path =
profile:customized_config_path()`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]