<code> assert(buffer && bytes); </code> please.
The old code "handled" the alternative, albeit as "error"; you believe that is now never exercised, so it's appropriate to assert.