Skip to content

Commit

Permalink
fix(ble): fix nil cast
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha Froment <sfroment42@gmail.com>
  • Loading branch information
sfroment committed Nov 12, 2018
1 parent 1404b10 commit 5ab672b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/network/ble/conn.go
Expand Up @@ -36,6 +36,9 @@ var conns sync.Map

func getConn(bleUUID string) (*Conn, bool) {
c, ok := conns.Load(bleUUID)
if !ok {
return nil, ok
}
return c.(*Conn), ok
}

Expand Down

0 comments on commit 5ab672b

Please sign in to comment.