diff options
author | Unknwon <u@gogs.io> | 2017-02-01 21:34:14 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-01 21:34:14 -0500 |
commit | f0f8205b8be67dc8c06e63477262d39ad4765348 (patch) | |
tree | 9e8c037b536f7af6e48eccc14959df2705df2cc7 /models/ssh_key.go | |
parent | 2bb1de180550aad46f5a70e26fe44ff110a5502c (diff) |
models/ssh_key: little key methods receiver rename
Diffstat (limited to 'models/ssh_key.go')
-rw-r--r-- | models/ssh_key.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models/ssh_key.go b/models/ssh_key.go index 94d1bcf2..26351b60 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -84,13 +84,13 @@ func (k *PublicKey) OmitEmail() string { } // AuthorizedString returns formatted public key string for authorized_keys file. -func (key *PublicKey) AuthorizedString() string { - return fmt.Sprintf(_TPL_PUBLICK_KEY, setting.AppPath, key.ID, setting.CustomConf, key.Content) +func (k *PublicKey) AuthorizedString() string { + return fmt.Sprintf(_TPL_PUBLICK_KEY, setting.AppPath, k.ID, setting.CustomConf, k.Content) } // IsDeployKey returns true if the public key is used as deploy key. -func (key *PublicKey) IsDeployKey() bool { - return key.Type == KEY_TYPE_DEPLOY +func (k *PublicKey) IsDeployKey() bool { + return k.Type == KEY_TYPE_DEPLOY } func extractTypeFromBase64Key(key string) (string, error) { |