Skip to content

Commit

Permalink
Fixes lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yurydelendik committed Aug 6, 2014
1 parent 46a9a35 commit 682b93a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/cmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,10 @@ var BinaryCMapReader = (function BinaryCMapReaderClosure() {
function hexToStr(a, size) {
// This code is hot. Special-case some common values to avoid creating an
// object with subarray().
if (size == 1) {
if (size === 1) {
return String.fromCharCode(a[0], a[1]);
}
if (size == 3) {
if (size === 3) {
return String.fromCharCode(a[0], a[1], a[2], a[3]);
}
return String.fromCharCode.apply(null, a.subarray(0, size + 1));
Expand Down

0 comments on commit 682b93a

Please sign in to comment.