Skip to content

Commit

Permalink
Merge pull request #7881 from Snuffleupagus/fixMetadata-constant-cond…
Browse files Browse the repository at this point in the history
…ition

Remove a misplaced `false` from a condition in `fixMetadata`, in `metadata.js`, since it currently short circuits the entire condition
  • Loading branch information
timvandermeij authored Dec 7, 2016
2 parents 94ddd8f + 77bcc92 commit aaec490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/display/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ var error = sharedUtil.error;
var chars = '';
for (var i = 0; i < bytes.length; i += 2) {
var code = bytes.charCodeAt(i) * 256 + bytes.charCodeAt(i + 1);
chars += code >= 32 && code < 127 && code !== 60 && code !== 62 &&
code !== 38 && false ? String.fromCharCode(code) :
chars += (code >= 32 && code < 127 && code !== 60 && code !== 62 &&
code !== 38) ? String.fromCharCode(code) :
'&#x' + (0x10000 + code).toString(16).substring(1) + ';';
}
return '>' + chars;
Expand Down

0 comments on commit aaec490

Please sign in to comment.