-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: add face acl failed msg #1613
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,9 @@ const ( | |
ACLReview = "acl_review" | ||
ACLReject = "acl_reject" | ||
|
||
ACLFaceVerify = "acl_face_verify" | ||
ACLFaceVerify = "acl_face_verify" | ||
ACLFaceOnline = "acl_face_online" | ||
ACLFaceOnlineNotSupported = "acl_face_online_not_supported" | ||
) | ||
|
||
type ConnectOptions struct { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code provided appears to be related to an open-source project and is used for connecting various authentication types with specific functions and operations. The first difference I noticed is that the For instance, the documentation indicates two different ways to authenticate user identities:
In contrast, you're referring to:
This could indicate some sort of miscommunication between authors or maintainers when naming these interfaces/authentications. |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code does not contain any known issues or improvements. However, it could be more streamlined by using a single return statement after checking the case for all types of assets. Also, consider if adding a comment at
default case
provides additional help to someone reading this function, such that they can understand what will happen when no specific case matches. Here is an example:This change should improve readability and maintainability without altering functionality.
Let me know if you have another question!