Fix linting errors

This commit is contained in:
2025-02-08 22:29:21 +01:00
parent 1cd56f1525
commit 558d0f4929
3 changed files with 15 additions and 7 deletions

View File

@@ -47,7 +47,9 @@ func (n *NotifyBus) ServerInfo() (*NotifyServerInfo, error) {
}
srvInfo := &NotifyServerInfo{}
call.Store(&srvInfo.Name, &srvInfo.Vendor, &srvInfo.Version, &srvInfo.SpecVersion)
if err := call.Store(&srvInfo.Name, &srvInfo.Vendor, &srvInfo.Version, &srvInfo.SpecVersion); err != nil {
return nil, err
}
return srvInfo, nil
}
@@ -70,7 +72,9 @@ func (n *NotifyBus) Notify(notification BusNotification) (uint32, error) {
return ret, call.Err
}
call.Store(&ret)
if err := call.Store(&ret); err != nil {
return 0, err
}
return ret, nil
}