You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/10 09:11:44 UTC

[GitHub] [apisix] spacewander commented on a change in pull request #4406: chore: clean and format code

spacewander commented on a change in pull request #4406:
URL: https://github.com/apache/apisix/pull/4406#discussion_r649000948



##########
File path: apisix/core/table.lua
##########
@@ -61,9 +61,7 @@ end
 
 
 function _M.try_read_attr(tab, ...)
-    local count = select('#', ...)

Review comment:
       Changes below are quite trivial. We don't accept such change which breaks the `git blame`.
   Please remove them.

##########
File path: apisix/cli/ops.lua
##########
@@ -631,11 +631,10 @@ local function start(env, ...)
     pid = tonumber(pid)
     if pid then
         local lsof_cmd = "lsof -p " .. pid
-        local hd = popen(lsof_cmd)
-        local res = hd:read("*a")
+        local res, err = util.execute_cmd(lsof_cmd)

Review comment:
       We only can accept this change which refactors code and use the common way. 




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org