mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 15:20:54 +00:00
eliminated improper comments
This commit is contained in:
parent
8c3b936c60
commit
b4fb657efd
@ -222,7 +222,6 @@ func (p *ControllerRegistor) AddAuto(c ControllerInterface) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter adds the middleware filter.
|
|
||||||
func buildFilter(pattern string, filter FilterFunc) *FilterRouter {
|
func buildFilter(pattern string, filter FilterFunc) *FilterRouter {
|
||||||
mr := new(FilterRouter)
|
mr := new(FilterRouter)
|
||||||
mr.filterFunc = filter
|
mr.filterFunc = filter
|
||||||
@ -266,7 +265,6 @@ func buildFilter(pattern string, filter FilterFunc) *FilterRouter {
|
|||||||
return mr
|
return mr
|
||||||
}
|
}
|
||||||
|
|
||||||
//p.filters[action] = append(p.filters[action], mr)
|
|
||||||
func (p *ControllerRegistor) AddFilter(pattern, action string, filter FilterFunc) {
|
func (p *ControllerRegistor) AddFilter(pattern, action string, filter FilterFunc) {
|
||||||
mr := buildFilter(pattern, filter)
|
mr := buildFilter(pattern, filter)
|
||||||
switch action {
|
switch action {
|
||||||
|
Loading…
Reference in New Issue
Block a user