]> git.parisson.com Git - pdf.js.git/commitdiff
Fixing lint errors; extra empty lines
authornotmasteryet <async.processingjs@yahoo.com>
Fri, 2 Dec 2011 21:35:18 +0000 (15:35 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Fri, 2 Dec 2011 21:35:18 +0000 (15:35 -0600)
src/obj.js

index 9544bea60ea4f2856d21f3a2969dd7b7d8fabf59..474b54336875b9a31bfb2485f9d845345fc7a723 100644 (file)
@@ -518,12 +518,15 @@ var XRef = (function xRefXRef() {
     readXRef: function readXref(startXRef) {
       var stream = this.stream;
       stream.pos = startXRef;
+
       try {
         var parser = new Parser(new Lexer(stream), true);
         var obj = parser.getObj();
+
         // parse an old-style xref table
         if (isCmd(obj, 'xref'))
           return this.readXRefTable(parser);
+
         // parse an xref stream
         if (isInt(obj)) {
           if (!isInt(parser.getObj()) ||
@@ -533,9 +536,10 @@ var XRef = (function xRefXRef() {
           }
           return this.readXRefStream(obj);
         }
-      } catch(e) {
+      } catch (e) {
         log('Reading of the xref table/stream failed: ' + e);
       }
+
       warn('Indexing all PDF objects');
       return this.indexObjects();
     },