dgram: scope redeclared variables
authorRich Trott <rtrott@gmail.com>
Fri, 29 Jan 2016 04:08:57 +0000 (20:08 -0800)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit42346c13e1960f1006ffd85f01915a73b939f1f5
treee37887f803f52fba7a5d3b53e5d270167581ada0
parenta0f72bdc9ef8833ea81b6b1e18a83c1312a3f69d
dgram: scope redeclared variables

A few variables in `lib/dgram.js` are redeclared with `var` in a scope
where they have already been declared. These instances can be scoped
more narrowly with `const`, so that's what this change does.

PR-URL: https://github.com/nodejs/node/pull/4940
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
lib/dgram.js