Fix linting errors
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user