remove redundant option fetch

since options have to be fetched higher anyway... 
Or rather - this options is outside of knowing gun options
This commit is contained in:
d3x0r 2016-12-23 00:43:05 -08:00 committed by GitHub
parent 266b18109c
commit a4425bda24

View File

@ -83,8 +83,6 @@ function Peer (url, options) {
this.setMaxListeners(Infinity); this.setMaxListeners(Infinity);
this.options = options || {}; this.options = options || {};
if( !('wsc' in this.options ) ) this.options.wsc = { protocols: null };
else if( !('protocols' in this.options.wsc) ) this.options.wsc.protocols = null;
// Messages sent before the socket is ready. // Messages sent before the socket is ready.
this.deferredMsgs = []; this.deferredMsgs = [];