提交 1ba78479 编写于 作者: B Bill Davis

Changing check from nil to len based on slice

上级 b6f789c4
......@@ -391,7 +391,7 @@ func (p *ControllerRegistor) InsertFilter(pattern string, pos int, filter Filter
if !RouterCaseSensitive {
pattern = strings.ToLower(pattern)
}
if params == nil {
if len(params) == 0 {
mr.returnOnOutput = true
} else {
mr.returnOnOutput = params[0]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册