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:
parent
6751136e6b
commit
7bbd0d08ca
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