Replace simple case with if

This commit is contained in:
Svend Sorensen 2015-10-07 13:56:43 -07:00 committed by Anthony Stanton
parent 8e4a313f17
commit 73b51698ad
1 changed files with 1 additions and 2 deletions

View File

@ -71,8 +71,7 @@ func (sl StringList) Slice() []string {
// split on an empty StringList will have a length of 2, since there is
// always at least one deliminator
switch len(parts) {
case 0, 1, 2:
if len(parts) <= 2 {
return []string{}
}