1ba78479 by Bill Davis

Changing check from nil to len based on slice

1 parent b6f789c4
...@@ -391,7 +391,7 @@ func (p *ControllerRegistor) InsertFilter(pattern string, pos int, filter Filter ...@@ -391,7 +391,7 @@ func (p *ControllerRegistor) InsertFilter(pattern string, pos int, filter Filter
391 if !RouterCaseSensitive { 391 if !RouterCaseSensitive {
392 pattern = strings.ToLower(pattern) 392 pattern = strings.ToLower(pattern)
393 } 393 }
394 if params == nil { 394 if len(params) == 0 {
395 mr.returnOnOutput = true 395 mr.returnOnOutput = true
396 } else { 396 } else {
397 mr.returnOnOutput = params[0] 397 mr.returnOnOutput = params[0]
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!