membphis opened a new issue #1180: bad code style
URL: https://github.com/apache/incubator-apisix/issues/1180
 
 
   
https://github.com/apache/incubator-apisix/pull/1167/files#diff-62edadffc237f13dc28a694080d293a8R543
   
   we need a better style, here is an example:
   
   ```
   local function system_dns_resolver()
       local file, err = io.open("/etc/resolv.conf")
       if err then
           return nil, err
       end
   
       local dns_addrs = {}
       ... ...
   
       file:close()
       return dns_addrs
   end
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to