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:
parent
08383bdcbc
commit
c3d7f15513
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user