From 9e627af9a449419bcec65ccff1dba00abc625d43 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Fri, 12 May 2017 04:09:53 -0400 Subject: [PATCH] gofmt (#1710) --- models/repo.go | 2 +- modules/auth/user_form.go | 16 ++++++++-------- modules/markup/markup.go | 1 - 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/models/repo.go b/models/repo.go index c8f7d949a..07fe768ea 100644 --- a/models/repo.go +++ b/models/repo.go @@ -301,7 +301,7 @@ func (repo *Repository) innerAPIFormat(mode AccessMode, isParent bool) *api.Repo Description: repo.Description, Private: repo.IsPrivate, Empty: repo.IsBare, - Size: int(repo.Size/1024), + Size: int(repo.Size / 1024), Fork: repo.IsFork, Parent: parent, Mirror: repo.IsMirror, diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index ea6e464a7..f4234b04a 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -38,15 +38,15 @@ type InstallForm struct { RegisterConfirm bool MailNotify bool - OfflineMode bool - DisableGravatar bool - EnableFederatedAvatar bool - DisableRegistration bool - EnableCaptcha bool - RequireSignInView bool - DefaultKeepEmailPrivate bool + OfflineMode bool + DisableGravatar bool + EnableFederatedAvatar bool + DisableRegistration bool + EnableCaptcha bool + RequireSignInView bool + DefaultKeepEmailPrivate bool DefaultAllowCreateOrganization bool - NoReplyAddress string + NoReplyAddress string AdminName string `binding:"OmitEmpty;AlphaDashDot;MaxSize(30)" locale:"install.admin_name"` AdminPasswd string `binding:"OmitEmpty;MaxSize(255)" locale:"install.admin_password"` diff --git a/modules/markup/markup.go b/modules/markup/markup.go index e1fae3a5a..185cdc727 100644 --- a/modules/markup/markup.go +++ b/modules/markup/markup.go @@ -81,4 +81,3 @@ func IsReadmeFile(name string) bool { } return name[:7] == "readme." } -