1
0
Fork 0
forked from forgejo/forgejo

#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")