From 1207bda94b8de9f0cc618c4ccce235d809a5559e Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Wed, 4 Jan 2017 19:50:34 -0500 Subject: Fix typos in models/ (#576) --- models/ssh_key.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models/ssh_key.go') 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() -- cgit v1.2.3