From ea0cc5eb589375d97698426b11963acacc5345b8 Mon Sep 17 00:00:00 2001 From: Cas <6506529+ThaUnknown@users.noreply.github.com> Date: Tue, 30 May 2023 23:00:53 +0200 Subject: [PATCH] fix: remove unused hack (#155) --- index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/index.js b/index.js index f9eb8e36..1db0726c 100644 --- a/index.js +++ b/index.js @@ -259,10 +259,6 @@ function ensure (bool, fieldName) { if (!bool) throw new Error(`Torrent is missing required field: ${fieldName}`) } -// Workaround Browserify v13 bug -// https://github.com/substack/node-browserify/issues/1483 -;(() => { Buffer.alloc(0) })() - export default parseTorrent const toMagnetURI = encode export { parseTorrentRemote as remote, encodeTorrentFile as toTorrentFile, toMagnetURI }