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 2022/10/19 10:42:43 UTC

[GitHub] [apisix] tokers commented on a diff in pull request #8115: feat: specify function return value

tokers commented on code in PR #8115:
URL: https://github.com/apache/apisix/pull/8115#discussion_r999265648


##########
CODE_STYLE.md:
##########
@@ -320,6 +320,24 @@ local function check(age, name)
 end
 ```
 
+The function should return `<boolean>`, `err`.
+The first return value means successful or not, if not, the second return value specifies the error message.
+The error message can be ignore in some case.

Review Comment:
   The error message can be ignored in some case.



-- 
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: notifications-unsubscribe@apisix.apache.org

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