From accc41a68c1486a08ca2b07c9a8b31c30483d5da Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Mon, 13 Nov 2023 15:33:03 +0200 Subject: [PATCH] refactor: remove unreachable code in MsgV3 --- lib/msg-v3/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/msg-v3/index.js b/lib/msg-v3/index.js index d8212e9..8faeb65 100644 --- a/lib/msg-v3/index.js +++ b/lib/msg-v3/index.js @@ -160,9 +160,6 @@ function create(opts) { const prev = [...union(lipmaaSet, tangle.tips)].sort() tangles[rootID] = { depth, prev } } - } else { - // prettier-ignore - throw new Error(`cannot create msg without tangles, that's the case for createMoot()`) } /** @type {Msg} */