1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

#1622 comment with whitespace

This commit is contained in:
Unknwon
2015-09-12 16:58:18 -04:00
parent aff773f1b9
commit d185f601d3
4 changed files with 13 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ func parseKeyString(content string) (string, error) {
if len(lines) == 1 {
// Parse openssh format
parts := strings.Fields(lines[0])
parts := strings.SplitN(lines[0], " ", 3)
switch len(parts) {
case 0:
return "", errors.New("Empty key")