diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/action.go | 2 | ||||
-rw-r--r-- | models/ssh_key.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go index 1715c05a..8b15f1cf 100644 --- a/models/action.go +++ b/models/action.go @@ -75,7 +75,7 @@ type Action struct { ID int64 UserID int64 // Receiver user ID OpType ActionType - ActUserID int64 // Doer user OD + ActUserID int64 // Doer user ID ActUserName string // Doer user name ActAvatar string `xorm:"-"` RepoID int64 `xorm:"INDEX"` diff --git a/models/ssh_key.go b/models/ssh_key.go index 798c58f2..00dc1af7 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -289,7 +289,7 @@ func CheckPublicKeyString(content string) (_ string, err error) { return "", errors.New("only a single line with a single key please") } - // remove any unnecessary whitespace now + // Remove any unnecessary whitespace content = strings.TrimSpace(content) if !setting.SSH.MinimumKeySizeCheck { |