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
|
// Create new EndpointInfo with copied fields
|
||||||
dst := &EndpointInfo{
|
dst := &EndpointInfo{
|
||||||
Method: src.Method,
|
Method: src.Method,
|
||||||
Path: src.Path,
|
Path: src.Path,
|
||||||
Policy: src.Policy,
|
Policy: src.Policy,
|
||||||
OwnerOnly: src.OwnerOnly,
|
OwnerOnly: src.OwnerOnly,
|
||||||
CreatorOnly: src.CreatorOnly,
|
CreatorOnly: src.CreatorOnly,
|
||||||
EditorOnly: src.EditorOnly,
|
EditorOnly: src.EditorOnly,
|
||||||
TeamOnly: src.TeamOnly,
|
TeamOnly: src.TeamOnly,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deep copy RequiredScopes slice
|
// Deep copy RequiredScopes slice
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue