Skip to content

Commit 512b258

Browse files
committed
reformated creating acl's
1 parent 1b969d5 commit 512b258

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cns/middlewares/k8sSwiftV2_windows.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,12 @@ func getEndpointPolicy(policyType, action, direction string, priority int) (poli
7979

8080
// create policy given the params
8181
func createEndpointPolicy(policyType, action, direction string, priority int) ([]byte, error) {
82-
type EndpointPolicy struct {
82+
endpointPolicy := struct {
8383
Type string `json:"Type"`
8484
Action string `json:"Action"`
8585
Direction string `json:"Direction"`
8686
Priority int `json:"Priority"`
87-
}
88-
89-
endpointPolicy := EndpointPolicy{
87+
}{
9088
Type: policyType,
9189
Action: action,
9290
Direction: direction,

0 commit comments

Comments
 (0)