Bläddra i källkod

Fix invalid struct tags and remove unreachable code.

tags/v0.9.99
Justin Nuß 10 år sedan
förälder
incheckning
8023494a94
3 ändrade filer med 2 tillägg och 3 borttagningar
  1. 1
    1
      modules/auth/repo_form.go
  2. 1
    1
      modules/log/file.go
  3. 0
    1
      modules/social/social.go

+ 1
- 1
modules/auth/repo_form.go Visa fil

@@ -71,7 +71,7 @@ func (f *RepoSettingForm) Validate(ctx *macaron.Context, errs *binding.Errors, l
type NewWebhookForm struct {
Url string `form:"url" binding:"Required;Url"`
ContentType string `form:"content_type" binding:"Required"`
Secret string `form:"secret""`
Secret string `form:"secret"`
PushOnly bool `form:"push_only"`
Active bool `form:"active"`
}

+ 1
- 1
modules/log/file.go Visa fil

@@ -34,7 +34,7 @@ type FileLogWriter struct {

// Rotate daily
Daily bool `json:"daily"`
Maxdays int64 `json:"maxdays`
Maxdays int64 `json:"maxdays"`
daily_opendate int

Rotate bool `json:"rotate"`

+ 0
- 1
modules/social/social.go Visa fil

@@ -391,5 +391,4 @@ func (s *SocialWeibo) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo,
Identity: token.Extra["id_token"],
Name: data.Name,
}, nil
return nil, nil
}

Laddar…
Avbryt
Spara