Skip to content

Commit ad915f8

Browse files
committed
Fix errors reported by the comma-spacing ESLint rule
http://eslint.org/docs/rules/comma-spacing
1 parent 66d2637 commit ad915f8

File tree

9 files changed

+36
-36
lines changed

9 files changed

+36
-36
lines changed

extensions/chromium/pdfHandler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function getHeaderFromHeaders(headers, headerName) {
7272
function isPdfFile(details) {
7373
var header = getHeaderFromHeaders(details.responseHeaders, 'content-type');
7474
if (header) {
75-
var headerValue = header.value.toLowerCase().split(';',1)[0].trim();
75+
var headerValue = header.value.toLowerCase().split(';', 1)[0].trim();
7676
if (headerValue === 'application/pdf') {
7777
return true;
7878
}
@@ -153,7 +153,7 @@ chrome.webRequest.onHeadersReceived.addListener(
153153
],
154154
types: ['main_frame', 'sub_frame']
155155
},
156-
['blocking','responseHeaders']);
156+
['blocking', 'responseHeaders']);
157157

158158
chrome.webRequest.onBeforeRequest.addListener(
159159
function onBeforeRequestForFTP(details) {

make.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ target.chromium = function() {
883883
'extensions/chromium/*.html',
884884
'extensions/chromium/*.js',
885885
'extensions/chromium/*.css',
886-
'extensions/chromium/icon*.png',],
886+
'extensions/chromium/icon*.png'],
887887
CHROME_BUILD_DIR],
888888
['extensions/chromium/pageAction/*.*', CHROME_BUILD_DIR + '/pageAction'],
889889
['extensions/chromium/options/*.*', CHROME_BUILD_DIR + '/options'],

src/core/annotation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ var Annotation = (function AnnotationClosure() {
435435
// Properties
436436
]);
437437
var bbox = appearanceDict.getArray('BBox') || [0, 0, 1, 1];
438-
var matrix = appearanceDict.getArray('Matrix') || [1, 0, 0, 1, 0 ,0];
438+
var matrix = appearanceDict.getArray('Matrix') || [1, 0, 0, 1, 0, 0];
439439
var transform = getTransformMatrix(data.rect, bbox, matrix);
440440
var self = this;
441441

src/core/crypto.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -609,22 +609,22 @@ var calculateSHA512 = (function calculateSHA512Closure() {
609609
var result;
610610
if (!mode384) {
611611
result = new Uint8Array(64);
612-
h0.copyTo(result,0);
613-
h1.copyTo(result,8);
614-
h2.copyTo(result,16);
615-
h3.copyTo(result,24);
616-
h4.copyTo(result,32);
617-
h5.copyTo(result,40);
618-
h6.copyTo(result,48);
619-
h7.copyTo(result,56);
612+
h0.copyTo(result, 0);
613+
h1.copyTo(result, 8);
614+
h2.copyTo(result, 16);
615+
h3.copyTo(result, 24);
616+
h4.copyTo(result, 32);
617+
h5.copyTo(result, 40);
618+
h6.copyTo(result, 48);
619+
h7.copyTo(result, 56);
620620
} else {
621621
result = new Uint8Array(48);
622-
h0.copyTo(result,0);
623-
h1.copyTo(result,8);
624-
h2.copyTo(result,16);
625-
h3.copyTo(result,24);
626-
h4.copyTo(result,32);
627-
h5.copyTo(result,40);
622+
h0.copyTo(result, 0);
623+
h1.copyTo(result, 8);
624+
h2.copyTo(result, 16);
625+
h3.copyTo(result, 24);
626+
h4.copyTo(result, 32);
627+
h5.copyTo(result, 40);
628628
}
629629
return result;
630630
}

src/display/svg.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ var SVGGraphics = (function SVGGraphicsClosure() {
841841
var height = args[j++];
842842
var xw = x + width;
843843
var yh = y + height;
844-
d.push('M', pf(x), pf(y), 'L', pf(xw) , pf(y), 'L', pf(xw), pf(yh),
844+
d.push('M', pf(x), pf(y), 'L', pf(xw), pf(y), 'L', pf(xw), pf(yh),
845845
'L', pf(x), pf(yh), 'Z');
846846
break;
847847
case OPS.moveTo:
@@ -852,7 +852,7 @@ var SVGGraphics = (function SVGGraphicsClosure() {
852852
case OPS.lineTo:
853853
x = args[j++];
854854
y = args[j++];
855-
d.push('L', pf(x) , pf(y));
855+
d.push('L', pf(x), pf(y));
856856
break;
857857
case OPS.curveTo:
858858
x = args[j + 4];

src/display/webgl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
186186
if (!smaskCache) {
187187
initSmaskGL();
188188
}
189-
var cache = smaskCache,canvas = cache.canvas, gl = cache.gl;
189+
var cache = smaskCache, canvas = cache.canvas, gl = cache.gl;
190190
canvas.width = width;
191191
canvas.height = height;
192192
gl.viewport(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight);

src/shared/cffStandardStrings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ var CFFDictDataMap = {
148148
},
149149
'7': {
150150
name: 'FontMatrix',
151-
operand: [0.001, 0, 0, 0.001, 0 , 0]
151+
operand: [0.001, 0, 0, 0.001, 0, 0]
152152
},
153153
'8': {
154154
name: 'StrokeWidth',

test/unit/crypto_spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ describe('crypto', function() {
250250
key = hex2binary('000102030405060708090a0b0c0d0e0f');
251251
iv = hex2binary('00000000000000000000000000000000');
252252
cipher = new AES128Cipher(key);
253-
result = cipher.encrypt(input,iv);
253+
result = cipher.encrypt(input, iv);
254254
expected = hex2binary('69c4e0d86a7b0430d8cdb78070b4c55a');
255255
expect(result).toEqual(expected);
256256
});
@@ -279,7 +279,7 @@ describe('crypto', function() {
279279
'191a1b1c1d1e1f');
280280
iv = hex2binary('00000000000000000000000000000000');
281281
cipher = new AES256Cipher(key);
282-
result = cipher.encrypt(input,iv);
282+
result = cipher.encrypt(input, iv);
283283
expected = hex2binary('8ea2b7ca516745bfeafc49904b496089');
284284
expect(result).toEqual(expected);
285285
});
@@ -293,7 +293,7 @@ describe('crypto', function() {
293293
'191a1b1c1d1e1f');
294294
iv = hex2binary('00000000000000000000000000000000');
295295
cipher = new AES256Cipher(key);
296-
result = cipher.decryptBlock(input,false,iv);
296+
result = cipher.decryptBlock(input, false, iv);
297297
expected = hex2binary('00112233445566778899aabbccddeeff');
298298
expect(result).toEqual(expected);
299299
});
@@ -304,7 +304,7 @@ describe('crypto', function() {
304304
key = hex2binary('000102030405060708090a0b0c0d0e0f101112131415161718' +
305305
'191a1b1c1d1e1f');
306306
cipher = new AES256Cipher(key);
307-
result = cipher.decryptBlock(input,false);
307+
result = cipher.decryptBlock(input, false);
308308
expected = hex2binary('00112233445566778899aabbccddeeff');
309309
expect(result).toEqual(expected);
310310
});

web/pdf_document_properties.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -200,22 +200,22 @@ var PDFDocumentProperties = (function PDFDocumentPropertiesClosure() {
200200
}
201201

202202
// Remove the D: prefix if it is available.
203-
if (dateToParse.substring(0,2) === 'D:') {
203+
if (dateToParse.substring(0, 2) === 'D:') {
204204
dateToParse = dateToParse.substring(2);
205205
}
206206

207207
// Get all elements from the PDF date string.
208208
// JavaScript's Date object expects the month to be between
209209
// 0 and 11 instead of 1 and 12, so we're correcting for this.
210-
var year = parseInt(dateToParse.substring(0,4), 10);
211-
var month = parseInt(dateToParse.substring(4,6), 10) - 1;
212-
var day = parseInt(dateToParse.substring(6,8), 10);
213-
var hours = parseInt(dateToParse.substring(8,10), 10);
214-
var minutes = parseInt(dateToParse.substring(10,12), 10);
215-
var seconds = parseInt(dateToParse.substring(12,14), 10);
216-
var utRel = dateToParse.substring(14,15);
217-
var offsetHours = parseInt(dateToParse.substring(15,17), 10);
218-
var offsetMinutes = parseInt(dateToParse.substring(18,20), 10);
210+
var year = parseInt(dateToParse.substring(0, 4), 10);
211+
var month = parseInt(dateToParse.substring(4, 6), 10) - 1;
212+
var day = parseInt(dateToParse.substring(6, 8), 10);
213+
var hours = parseInt(dateToParse.substring(8, 10), 10);
214+
var minutes = parseInt(dateToParse.substring(10, 12), 10);
215+
var seconds = parseInt(dateToParse.substring(12, 14), 10);
216+
var utRel = dateToParse.substring(14, 15);
217+
var offsetHours = parseInt(dateToParse.substring(15, 17), 10);
218+
var offsetMinutes = parseInt(dateToParse.substring(18, 20), 10);
219219

220220
// As per spec, utRel = 'Z' means equal to universal time.
221221
// The other cases ('-' and '+') have to be handled here.

0 commit comments

Comments
 (0)