https://github.com/clarkf/node-bencoding/blob/master/lib/bencoding.js#L74-L75 Not necessary. Line 74 can be dropped entirely. Do a benchmark test before and after, because I'm curious. Though I don't imagine a massive jump.