[Pkg-javascript-commits] [pdf.js] 52/161: Fix coding style in test/unit/parser_spec.js

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 14:16:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 7d4acc13fb0ddec8605f8a9d5c808bc12bdbf7cb
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Fri Mar 14 15:32:32 2014 +0100

    Fix coding style in test/unit/parser_spec.js
---
 test/unit/parser_spec.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/unit/parser_spec.js b/test/unit/parser_spec.js
index 03d700a..fdab17a 100644
--- a/test/unit/parser_spec.js
+++ b/test/unit/parser_spec.js
@@ -17,7 +17,7 @@ describe('parser', function() {
     it('should parse PostScript numbers', function() {
       var numbers = ['-.002', '34.5', '-3.62', '123.6e10', '1E-5', '-1.', '0.0',
                     '123', '-98', '43445', '0', '+17'];
-      for (var i=0, ii=numbers.length; i<ii; i++) {
+      for (var i = 0, ii = numbers.length; i < ii; i++) {
         var num = numbers[i];
         var input = new StringStream(num);
         var lexer = new Lexer(input);
@@ -43,7 +43,7 @@ describe('parser', function() {
       input.getByte = function(super_getByte) {
         // simulating end of file using null (see issue 2766)
         var ch = super_getByte.call(input);
-        return ch === 0x24 /* '$' */ ? -1 : ch;
+        return (ch === 0x24 /* '$' */ ? -1 : ch);
       }.bind(input, input.getByte);
       var lexer = new Lexer(input);
       var result = lexer.getString();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list