diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-01-04 19:50:34 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-05 08:50:34 +0800 |
commit | 1207bda94b8de9f0cc618c4ccce235d809a5559e (patch) | |
tree | 9650961a7aa1dd3de883f5f6bef27db420b26227 /models/ssh_key.go | |
parent | dc3ff9f2abc935f06940de56d613dacde3ee8c13 (diff) | |
download | gitea-1207bda94b8de9f0cc618c4ccce235d809a5559e.tar.gz gitea-1207bda94b8de9f0cc618c4ccce235d809a5559e.zip |
Fix typos in models/ (#576)
Diffstat (limited to 'models/ssh_key.go')
-rw-r--r-- | models/ssh_key.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/ssh_key.go b/models/ssh_key.go index d7d71f68cb..cdb83b44e0 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -354,7 +354,7 @@ func appendAuthorizedKeysToFile(keys ...*PublicKey) error { return nil } -// checkKeyContent onlys checks if key content has been used as public key, +// checkKeyContent only checks if key content has been used as public key, // it is OK to use same key as deploy key for multiple repositories/users. func checkKeyContent(content string) error { has, err := x.Get(&PublicKey{ @@ -526,7 +526,7 @@ func DeletePublicKey(doer *User, id int64) (err error) { // RewriteAllPublicKeys removes any authorized key and rewrite all keys from database again. // Note: x.Iterate does not get latest data after insert/delete, so we have to call this function -// outsite any session scope independently. +// outside any session scope independently. func RewriteAllPublicKeys() error { sshOpLocker.Lock() defer sshOpLocker.Unlock() |