lint fix: staticcheck and null derefs

This commit is contained in:
Pim van Pelt
2025-07-03 07:13:42 +02:00
parent dce4750b0f
commit ead795674c
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 {