Browse Source

gofmt (#1710)

tags/v1.2.0-rc1
Ethan Koenig Bo-Yi Wu 8 years ago
parent
commit
d25c43293c
3 changed files with 9 additions and 10 deletions
  1. +1
    -1
      models/repo.go
  2. +8
    -8
      modules/auth/user_form.go
  3. +0
    -1
      modules/markup/markup.go

+ 1
- 1
models/repo.go View File

@@ -301,7 +301,7 @@ func (repo *Repository) innerAPIFormat(mode AccessMode, isParent bool) *api.Repo
Description: repo.Description, Description: repo.Description,
Private: repo.IsPrivate, Private: repo.IsPrivate,
Empty: repo.IsBare, Empty: repo.IsBare,
Size: int(repo.Size/1024),
Size: int(repo.Size / 1024),
Fork: repo.IsFork, Fork: repo.IsFork,
Parent: parent, Parent: parent,
Mirror: repo.IsMirror, Mirror: repo.IsMirror,


+ 8
- 8
modules/auth/user_form.go View File

@@ -38,15 +38,15 @@ type InstallForm struct {
RegisterConfirm bool RegisterConfirm bool
MailNotify 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 DefaultAllowCreateOrganization bool
NoReplyAddress string
NoReplyAddress string


AdminName string `binding:"OmitEmpty;AlphaDashDot;MaxSize(30)" locale:"install.admin_name"` AdminName string `binding:"OmitEmpty;AlphaDashDot;MaxSize(30)" locale:"install.admin_name"`
AdminPasswd string `binding:"OmitEmpty;MaxSize(255)" locale:"install.admin_password"` AdminPasswd string `binding:"OmitEmpty;MaxSize(255)" locale:"install.admin_password"`


+ 0
- 1
modules/markup/markup.go View File

@@ -81,4 +81,3 @@ func IsReadmeFile(name string) bool {
} }
return name[:7] == "readme." return name[:7] == "readme."
} }


Loading…
Cancel
Save