Browse Source

Changed client status shorthand to avoid needless target lookp

master
Gisle Aune 6 years ago
parent
commit
9aa04bbc10
  1. 7
      client.go

7
client.go

@ -446,12 +446,7 @@ func (client *Client) Target(kind string, name string) Target {
// Status gets the client's status target.
func (client *Client) Status() *Status {
target := client.Target("status", "Status")
if target == nil {
return nil
}
return target.(*Status)
return client.status
}
// Channel is a shorthand for getting a channel target and type asserting it.

Loading…
Cancel
Save