summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorMarios Andreopoulos <opensource@andmarios.com>2014-08-25 20:07:47 +0300
committerMarios Andreopoulos <opensource@andmarios.com>2014-08-25 20:07:47 +0300
commitb40922f4d47001dcd7eeff811fcb96462e4bda41 (patch)
treec78396ac6d8343cdcc8511b6149d146638306ef1 /routers
parent12639c577f297687539283bf8877a5583ecb8447 (diff)
downloadgitea-b40922f4d47001dcd7eeff811fcb96462e4bda41.tar.gz
gitea-b40922f4d47001dcd7eeff811fcb96462e4bda41.zip
remove extra comma
Diffstat (limited to 'routers')
-rw-r--r--routers/user/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go
index 21ff6df7c9..51a647e3a5 100644
--- a/routers/user/setting.go
+++ b/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()))