소스 검색

remove extra comma

Marios Andreopoulos 10 년 전
부모
커밋
b40922f4d4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      routers/user/setting.go

+ 1 - 1
routers/user/setting.go

@@ -172,7 +172,7 @@ func SettingsSSHKeysPost(ctx *middleware.Context, form auth.AddSSHKeyForm) {
 		}
 
 		// Remove newline characters from form.KeyContent
-		cleanKeyContent := strings.Replace(form.KeyContent, "\n", "", -1),
+		cleanKeyContent := strings.Replace(form.KeyContent, "\n", "", -1)
 
 		if ok, err := models.CheckPublicKeyString(cleanKeyContent); !ok {
 			ctx.Flash.Error(ctx.Tr("form.invalid_ssh_key", err.Error()))