Update comment formatting
This commit is contained in:
parent
d8e77d256f
commit
d24dfbeacf
1 changed files with 1 additions and 2 deletions
|
|
@ -217,8 +217,7 @@ func (c *AuthConfig) ActiveToken(hostname string) (string, string) {
|
|||
return token, source
|
||||
}
|
||||
|
||||
// HasActiveToken returns true when a token for the hostname is
|
||||
// present.
|
||||
// HasActiveToken returns true when a token for the hostname is present.
|
||||
func (c *AuthConfig) HasActiveToken(hostname string) bool {
|
||||
token, _ := c.ActiveToken(hostname)
|
||||
return token != ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue