Skip to content

Commit

Permalink
util: dont repeat isBuffer
Browse files Browse the repository at this point in the history
PR-URL: #1988
Reviewed-By: Roman Reiss <[email protected]>
  • Loading branch information
brendanashworth committed Jun 16, 2015
1 parent d5637e6 commit 626432d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,7 @@ function isPrimitive(arg) {
}
exports.isPrimitive = isPrimitive;

function isBuffer(arg) {
return arg instanceof Buffer;
}
exports.isBuffer = isBuffer;
exports.isBuffer = Buffer.isBuffer;

function objectToString(o) {
return Object.prototype.toString.call(o);
Expand Down

0 comments on commit 626432d

Please sign in to comment.