1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00

chore: remove CreateRunnerForm

This commit is contained in:
Jason Song 2023-01-05 15:20:02 +08:00
parent 08383bdcbc
commit c3d7f15513
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5

View File

@ -23,15 +23,3 @@ func (f *EditRunnerForm) Validate(req *http.Request, errs binding.Errors) bindin
ctx := context.GetContext(req)
return middleware.Validate(errs, ctx.Data, f, ctx.Locale)
}
// CreateRunnerForm form for admin to create runner
type CreateRunnerForm struct {
Name string `binding:"Required"`
Type string
}
// Validate validates form fields
func (f *CreateRunnerForm) Validate(req *http.Request, errs binding.Errors) binding.Errors {
ctx := context.GetContext(req)
return middleware.Validate(errs, ctx.Data, f, ctx.Locale)
}