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.
This commit is contained in:
Max 2025-10-31 20:55:23 +08:00
parent 6751136e6b
commit 7bbd0d08ca

View file

@ -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