bus/object.go
Method objectImpl.SetProperty
has 8 return statements (exceeds 4 allowed). Open
Open
func (o *objectImpl) SetProperty(name value.Value, newValue value.Value) error {
var nameStr string
stringValue, ok := name.(value.StringValue)
if ok {
nameStr = stringValue.Value()
Method clientObject.handleRegister
has 6 return statements (exceeds 4 allowed). Open
Open
func (c *clientObject) handleRegister(msg *net.Message, from Channel) error {
buf := bytes.NewBuffer(msg.Payload)
objectID, err := basic.ReadUint32(buf)
if err != nil {
err = fmt.Errorf("cannot read object uid: %s", err)
Function findSignature
has 6 return statements (exceeds 4 allowed). Open
Open
func findSignature(msg *net.Message, meta *object.MetaObject) string {
if msg.Header.Type == net.Call ||
msg.Header.Type == net.Post ||
msg.Header.Type == net.Reply {
m, ok := meta.Methods[msg.Header.Action]
Method stubObject.UpdateProperty
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *stubObject) UpdateProperty(id uint32, sig string, data []byte) error {
objImpl, ok := (s.impl).(*objectImpl)
if !ok {
return fmt.Errorf("unexpected implementation")
}
should omit 2nd value from range; this loop is equivalent to for uid := range ...
Open
Open
for uid, _ := range impl.meta.Methods {
- Exclude checks
should omit 2nd value from range; this loop is equivalent to for uid := range ...
Open
Open
for uid, _ := range o.meta.Methods {
- Exclude checks