Commit 1ba78479 authored by Bill Davis's avatar Bill Davis

Changing check from nil to len based on slice

parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment