Skip to content

Commit 81cf90a

Browse files
authored
gofumpt the repo (#2850)
1 parent e33c0b8 commit 81cf90a

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

gwctl/pkg/policymanager/merger_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,6 @@ func TestMergePoliciesOfDifferentHierarchy(t *testing.T) {
434434
if diff := cmp.Diff(policySliceToMap(tc.wantMergedPolicies), gotMergedPolicies, cmpopts); diff != "" {
435435
t.Errorf("MergePoliciesOfDifferentHierarchy returned unexpected diff (-want, +got):\n%v", diff)
436436
}
437-
438437
})
439438
}
440439
}

gwctl/pkg/resourcediscovery/nodes.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ type resourceID struct {
3636
Name string
3737
}
3838

39-
type gatewayClassID resourceID
40-
type namespaceID resourceID
41-
type gatewayID resourceID
42-
type httpRouteID resourceID
43-
type backendID resourceID
44-
type policyID resourceID
39+
type (
40+
gatewayClassID resourceID
41+
namespaceID resourceID
42+
gatewayID resourceID
43+
httpRouteID resourceID
44+
backendID resourceID
45+
policyID resourceID
46+
)
4547

4648
// GatewayClassID returns an ID for a GatewayClass.
4749
func GatewayClassID(gatewayClassName string) gatewayClassID {

gwctl/pkg/resourcediscovery/resourcemodel.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ func (rm *ResourceModel) addPolicyIfTargetExists(policies ...policymanager.Polic
160160
policyNode.HTTPRoute = httpRouteNode
161161
httpRouteNode.Policies[policyNode.ID()] = policyNode
162162
}
163-
164163
} else if policy.TargetRef().Group == corev1.GroupName && policy.TargetRef().Kind == "Namespace" {
165164
namespaceID := NamespaceID(policy.TargetRef().Name)
166165
namespaceNode, ok := rm.Namespaces[namespaceID]

tools/tools.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build tools
12
// +build tools
23

34
/*

0 commit comments

Comments
 (0)