Convert if/else to switch

switch is a little more succint here.

Also, defaulting to list instead of delete might just save me from
nuking a container the next time I'm testing code changes.