Fix Codacy

This commit is contained in:
braginini
2023-04-05 16:54:50 +02:00
parent 005c4dd44a
commit 0e8a552334
7 changed files with 12 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ func (n *Net) filterInterfaces(interfaces []*transport.Interface) []*transport.I
// The interfaces are discovered by an external iFaceDiscover function or by a default discoverer if the external one
// wasn't specified.
func (n *Net) UpdateInterfaces(iFaceDiscover IFaceDiscover) error {
discoveredInterfaces := []*transport.Interface{}
discoveredInterfaces := []*transport.Interface{} //nolint
var err error
if iFaceDiscover != nil {
interfacesString := ""