net: small code cleanup

`options` is already a param of the function.

PR-URL: https://github.com/nodejs/node/pull/3943
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Jan Schär 2015-11-20 20:23:25 +01:00 committed by James M Snell
parent dfee4e3712
commit 9472a0cfad

View File

@ -1079,7 +1079,6 @@ function Server(options, connectionListener) {
EventEmitter.call(this);
var self = this;
var options;
if (typeof options === 'function') {
connectionListener = options;