balazsgrill/wscgo

View on GitHub
devices/cometblue/cometblue.go

Summary

Maintainability
A
40 mins
Test Coverage

Function Dial has 6 return statements (exceeds 4 allowed).
Open

func Dial(address string) (*Client, error) {
    bt := GetCBContext()
    ctx, cancel := context.WithTimeout(context.Background(), timeout)
    defer cancel()
    client, err := ble.Dial(ctx, ble.NewAddr(address))
Severity: Major
Found in devices/cometblue/cometblue.go - About 40 mins to fix

There are no issues that match your filters.

Category
Status