0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 12:34:36 +01:00

Merge pull request #346 from nuss-justin/vet

Fix invalid struct tags and remove unreachable code.
This commit is contained in:
无闻 2014-08-04 13:46:23 -04:00
commit 5f84e8f4ff
3 changed files with 2 additions and 3 deletions

View file

@ -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"`
}

View file

@ -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"`

View file

@ -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
}