Please sign in to comment.
dgram: use Buffer.alloc(0) for zero-size buffers
There is no difference between alloc(0) and allocUnsafe(0), so there is no reason to confuse anyone reading the code with an additional call to allocUnsafe. PR-URL: #8751 Reviewed-By: Luigi Pinca <email@example.com> Reviewed-By: James M Snell <firstname.lastname@example.org> Reviewed-By: Colin Ihrig <email@example.com> Reviewed-By: Ilkka Myller <firstname.lastname@example.org> Reviewed-By: Anna Henningsen <email@example.com>
- Loading branch information...