spacewander commented on code in PR #8661:
URL: https://github.com/apache/apisix/pull/8661#discussion_r1070868821
##########
apisix/admin/resource.lua:
##########
@@ -57,7 +57,13 @@ function _M:check_conf(id, conf, need_id)
core.log.info("conf : ", core.json.delay_encode(conf))
-- check the resource own rules
- return self.checker(id, conf, need_id, self.schema)
+ local ok, err = self.checker(id, conf, need_id, self.schema)
+
+ if err then
Review Comment:
Code style, please use `if not ok then`
--
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]