Compare commits

...

1 Commits

Author SHA1 Message Date
Pim van Pelt
ead795674c lint fix: staticcheck and null derefs 2025-07-03 07:13:42 +02:00
3 changed files with 3 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ func TestNewInterfaceMIB(t *testing.T) {
if mib == nil {
t.Fatal("NewInterfaceMIB returned nil")
return
}
if mib.handler == nil {

View File

@@ -15,6 +15,7 @@ func TestNewInterfaceManager(t *testing.T) {
if manager == nil {
t.Fatal("NewInterfaceManager() returned nil")
return
}
if manager.client != client {
@@ -32,7 +33,6 @@ func TestNewInterfaceManager(t *testing.T) {
if manager.watchingEvents {
t.Error("InterfaceManager should not be watching events initially")
}
}
func TestInterfaceManagerSetEventCallback(t *testing.T) {

View File

@@ -15,6 +15,7 @@ func TestNewStatsManager(t *testing.T) {
if manager == nil {
t.Fatal("NewStatsManager() returned nil")
return
}
if manager.client != client {