Commit 05886cba authored by Michaël Zasso's avatar Michaël Zasso
Browse files

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: https://github.com/nodejs/node/pull/8552


Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
Reviewed-By: default avatarСковорода Никита Андреевич <chalkerx@gmail.com>
parent 4c768813
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment