Small code cleanup

I was reading through the memsnap code today and some unnecessary code
bothered me, so this commit strips it out.  The normal case and the
error case can be the same case and the normal case can just handle the
errors correctly in the loop.