From 9aa04bbc10bd104b2b1cd375323100f2f5b68a50 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sun, 5 Aug 2018 13:38:25 +0200 Subject: [PATCH] Changed client status shorthand to avoid needless target lookp --- client.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client.go b/client.go index 2b925b2..7af74ea 100644 --- a/client.go +++ b/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.