remove duplicate check in isBuffer
Merge pull request #32 from mscdex/patch-1

remove duplicate check in isBuffer