Skip to content

Commit

Permalink
please deepsource
Browse files Browse the repository at this point in the history
  • Loading branch information
steiler committed Aug 31, 2023
1 parent 127e3da commit 73bbd91
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion links/endpoint_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func NewEndpointHost(eg *EndpointGeneric) *EndpointHost {
}

func (e *EndpointHost) Verify(_ *VerifyLinkParams) error {
errs := []error{}
var errs []error
err := CheckEndpointUniqueness(e)
if err != nil {
errs = append(errs, err)
Expand Down
4 changes: 1 addition & 3 deletions links/endpoint_vxlan.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ func (e *EndpointVxlan) String() string {
return fmt.Sprintf("vxlan remote: %q, udp-port: %d, vni: %d", e.remote, e.udpPort, e.vni)
}

// // GetLink retrieves the link that the endpoint is assigned to
// func (e *EndpointVxlan) GetLink() Link
// // Verify verifies that the endpoint is valid and can be deployed
// Verify verifies that the endpoint is valid and can be deployed
func (e *EndpointVxlan) Verify(*VerifyLinkParams) error {
return CheckEndpointUniqueness(e)
}
2 changes: 1 addition & 1 deletion links/generic_link_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (g *GenericLinkNode) GetEndpoints() []Endpoint {
return g.endpoints
}

func (g *GenericLinkNode) GetState() state.NodeState {
func (*GenericLinkNode) GetState() state.NodeState {
// The GenericLinkNode is the basis for Mgmt-Bridge and Host fake node.
// Both of these do generally exist. Hence the Deployed state in generally returned
return state.Deployed
Expand Down
2 changes: 1 addition & 1 deletion links/link_veth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,6 @@ func (f *fakeNode) GetState() state.NodeState {
return f.State
}

func (f *fakeNode) Delete(ctx context.Context) error {
func (*fakeNode) Delete(context.Context) error {
return nil
}
4 changes: 2 additions & 2 deletions links/link_vxlan.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (lr *LinkVxlanRaw) resolveRegular(params *ResolveParams) (Link, error) {
return link, nil
}

func (lr *LinkVxlanRaw) GetType() LinkType {
func (*LinkVxlanRaw) GetType() LinkType {
return LinkTypeVxlan
}

Expand Down Expand Up @@ -348,6 +348,6 @@ func (l *LinkVxlan) GetEndpoints() []Endpoint {
return []Endpoint{l.localEndpoint, l.remoteEndpoint}
}

func (l *LinkVxlan) GetType() LinkType {
func (*LinkVxlan) GetType() LinkType {
return LinkTypeVxlan
}
2 changes: 1 addition & 1 deletion links/link_vxlan_stitched.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (l *VxlanStitched) GetEndpoints() []Endpoint {
return []Endpoint{l.vxlanLink.localEndpoint, l.vxlanLink.remoteEndpoint}
}

func (l *VxlanStitched) GetType() LinkType {
func (*VxlanStitched) GetType() LinkType {
return LinkTypeVxlanStitch
}

Expand Down

0 comments on commit 73bbd91

Please sign in to comment.