Skip to content

Commit

Permalink
fix: remove unused hack (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown authored May 30, 2023
1 parent e04947e commit ea0cc5e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

0 comments on commit ea0cc5e

Please sign in to comment.