udp: remove a needless instanceof Buffer check
authorronkorving <rkorving@wizcorp.jp>
Wed, 16 Dec 2015 02:09:13 +0000 (11:09 +0900)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:25 +0000 (11:52 -0800)
commitdd0c925896f75fffdcac0a5ad7688dc0934b5793
treeccd1f12203056e495a975c9643c245026336996b
parent764df2166e6d1429458511dd9ee57cb6f0536f09
udp: remove a needless instanceof Buffer check

When a string is passed to udpsock.send, it is automatically
converted to a Buffer. In that case, it is no longer needed
to test whether or not the argument is a Buffer or not.

PR-URL: https://github.com/nodejs/node/pull/4301
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Roman Reiss <me@silverwind.io>
lib/dgram.js