From 43472a59002c03afcdda134541acbc175c9e61fa Mon Sep 17 00:00:00 2001 From: David Dias Date: Sat, 19 Sep 2015 08:50:54 +0100 Subject: [PATCH] fix bad pattern --- src/index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/index.js b/src/index.js index 41098c4..7ddf8c2 100644 --- a/src/index.js +++ b/src/index.js @@ -19,10 +19,6 @@ function Sonar (peerSelf, options, swarmSelf) { throw new Error('Sonar must be instantiated with new') } - if (!(peerSelf instanceof Peer)) { - throw new Error('First argument must be of the type Peer (ipfs-peer)') - } - // option arguments self.broadcast = options && options.broadcast ? options.broadcast : true