mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 15:01:07 +01:00
Fix invalid struct tags and remove unreachable code.
This commit is contained in:
parent
755eec745f
commit
8023494a94
3 changed files with 2 additions and 3 deletions
|
@ -71,7 +71,7 @@ func (f *RepoSettingForm) Validate(ctx *macaron.Context, errs *binding.Errors, l
|
||||||
type NewWebhookForm struct {
|
type NewWebhookForm struct {
|
||||||
Url string `form:"url" binding:"Required;Url"`
|
Url string `form:"url" binding:"Required;Url"`
|
||||||
ContentType string `form:"content_type" binding:"Required"`
|
ContentType string `form:"content_type" binding:"Required"`
|
||||||
Secret string `form:"secret""`
|
Secret string `form:"secret"`
|
||||||
PushOnly bool `form:"push_only"`
|
PushOnly bool `form:"push_only"`
|
||||||
Active bool `form:"active"`
|
Active bool `form:"active"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ type FileLogWriter struct {
|
||||||
|
|
||||||
// Rotate daily
|
// Rotate daily
|
||||||
Daily bool `json:"daily"`
|
Daily bool `json:"daily"`
|
||||||
Maxdays int64 `json:"maxdays`
|
Maxdays int64 `json:"maxdays"`
|
||||||
daily_opendate int
|
daily_opendate int
|
||||||
|
|
||||||
Rotate bool `json:"rotate"`
|
Rotate bool `json:"rotate"`
|
||||||
|
|
|
@ -391,5 +391,4 @@ func (s *SocialWeibo) UserInfo(token *oauth.Token, _ *url.URL) (*BasicUserInfo,
|
||||||
Identity: token.Extra["id_token"],
|
Identity: token.Extra["id_token"],
|
||||||
Name: data.Name,
|
Name: data.Name,
|
||||||
}, nil
|
}, nil
|
||||||
return nil, nil
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue