client: fix "method not an expression" error for Go1

Change-Id: Id46cfafb6585fb074415d10affbb835373d27112
This commit is contained in:
mpl 2013-05-01 15:08:58 +02:00
parent 6be77f09e4
commit af542f5cae
1 changed files with 1 additions and 1 deletions

View File

@ -262,6 +262,6 @@ func (c *Client) initTrustedCerts() {
}
func (c *Client) GetTrustedCerts() []string {
initTrustedCertsOnce.Do(c.initTrustedCerts)
initTrustedCertsOnce.Do(func() { c.initTrustedCerts() })
return c.trustedCerts
}