Merge pull request #1260 from trheyi/main
Refactor EndpointInfo struct initialization for improved readability
This commit is contained in:
commit
a226bf6d7c
1 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue