remove unnecessary `undef` variables
Merge pull request #217 from davidchambers/undefined

remove unnecessary `undef` variables