diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/repo_form.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index 985fe24582..2eaefc5442 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -342,18 +342,3 @@ type DeleteRepoFileForm struct { func (f *DeleteRepoFileForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { return validate(errs, ctx.Data, f, ctx.Locale) } - -// __________ .__ -// \______ \____________ ____ ____ | |__ -// | | _/\_ __ \__ \ / \_/ ___\| | \ -// | | \ | | \// __ \| | \ \___| Y \ -// |______ / |__| (____ /___| /\___ >___| / -// \/ \/ \/ \/ \/ -type NewBranchForm struct { - OldBranchName string `binding:"Required;MaxSize(100)"` - BranchName string `binding:"Required;MaxSize(100)"` -} - -func (f *NewBranchForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { - return validate(errs, ctx.Data, f, ctx.Locale) -} |