Skip to content

Commit 067c82d

Browse files
committed
address linter
1 parent 68d7a0a commit 067c82d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

network/endpoint.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ func FormatSliceOfPointersToString[T any](slice []*T) string {
167167

168168
func (epInfo *EndpointInfo) PrettyString() string {
169169
return fmt.Sprintf("EndpointID:%s ContainerID:%s NetNsPath:%s IfName:%s IfIndex:%d MacAddr:%s IPAddrs:%v Gateways:%v Data:%+v NICType: %s "+
170-
"NetworkContainerID: %s HostIfName: %s NetNs: %s Options: %v MasterIfName: %s IfName: %s HNSEndpointID: %s HNSNetworkID: %s",
170+
"NetworkContainerID: %s HostIfName: %s NetNs: %s Options: %v MasterIfName: %s HNSEndpointID: %s HNSNetworkID: %s",
171171
epInfo.EndpointID, epInfo.ContainerID, epInfo.NetNsPath, epInfo.IfName, epInfo.IfIndex, epInfo.MacAddress.String(), epInfo.IPAddresses,
172172
epInfo.Gateways, epInfo.Data, epInfo.NICType, epInfo.NetworkContainerID, epInfo.HostIfName, epInfo.NetNs, epInfo.Options, epInfo.MasterIfName,
173-
epInfo.IfName, epInfo.HNSEndpointID, epInfo.HNSNetworkID)
173+
epInfo.HNSEndpointID, epInfo.HNSNetworkID)
174174
}
175175

176176
func (ifInfo *InterfaceInfo) PrettyString() string {

telemetry/telemetrybuffer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func TestStartTelemetryService(t *testing.T) {
190190
}
191191

192192
// TestExtraneousClose checks that closing potentially multiple times after a failed connect won't panic
193-
func TestExtraneousClose(t *testing.T) {
193+
func TestExtraneousClose(_ *testing.T) {
194194
tb := NewTelemetryBuffer(nil)
195195

196196
tb.Close()

0 commit comments

Comments
 (0)