From 7bbd0d08ca6b024ab98e02b612e232bf04aee81b Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 31 Oct 2025 20:55:23 +0800 Subject: [PATCH] Refactor EndpointInfo struct initialization for improved readability - Reformatted the initialization of the EndpointInfo struct in the ScopeManager to enhance code clarity and maintainability. - Ensured consistent alignment of struct fields for better visual organization. --- openapi/oauth/acl/scope.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openapi/oauth/acl/scope.go b/openapi/oauth/acl/scope.go index ffb9623f..fafdc8ba 100644 --- a/openapi/oauth/acl/scope.go +++ b/openapi/oauth/acl/scope.go @@ -861,13 +861,13 @@ func (m *ScopeManager) copyEndpointInfo(src *EndpointInfo) *EndpointInfo { // Create new EndpointInfo with copied fields dst := &EndpointInfo{ - Method: src.Method, - Path: src.Path, - Policy: src.Policy, - OwnerOnly: src.OwnerOnly, - CreatorOnly: src.CreatorOnly, - EditorOnly: src.EditorOnly, - TeamOnly: src.TeamOnly, + Method: src.Method, + Path: src.Path, + Policy: src.Policy, + OwnerOnly: src.OwnerOnly, + CreatorOnly: src.CreatorOnly, + EditorOnly: src.EditorOnly, + TeamOnly: src.TeamOnly, } // Deep copy RequiredScopes slice