Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buffer: remove unnecessary argument check
In Buffer.prototype.compare, the first check makes sure that target is an instance of Buffer. The value cannot be falsy after that so we can safely get its length. PR-URL: #8552 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
- Loading branch information