hypercore 11.27.4 → 11.27.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1324,13 +1324,8 @@ function validateRecoveryPeers(peers, length) {
1324
1324
 
1325
1325
  for (const p of peers) {
1326
1326
  if (p.remoteLength > length) return false
1327
+ if (p.remoteLength === 0) return false
1327
1328
  }
1328
1329
 
1329
- let all = true
1330
-
1331
- for (const p of peers) {
1332
- if (p.remoteLength === 0) all = false
1333
- }
1334
-
1335
- return all
1330
+ return true
1336
1331
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "11.27.4",
3
+ "version": "11.27.5",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {