Merge pull request #1260 from trheyi/main

Refactor EndpointInfo struct initialization for improved readability
This commit is contained in:
Max 2025-10-31 20:56:01 +08:00 committed by GitHub
commit a226bf6d7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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