]> source.dussan.org Git - gitea.git/commitdiff
remove extra comma
authorMarios Andreopoulos <opensource@andmarios.com>
Mon, 25 Aug 2014 17:07:47 +0000 (20:07 +0300)
committerMarios Andreopoulos <opensource@andmarios.com>
Mon, 25 Aug 2014 17:07:47 +0000 (20:07 +0300)
routers/user/setting.go

index 21ff6df7c9c2a11480df00d9b1b5a17a9cef8782..51a647e3a5b78e7b3af24e4016d605b0e70237fd 100644 (file)
@@ -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()))