Skip to content

Commit e548bff

Browse files
committed
Style fixes.
1 parent 19393e9 commit e548bff

File tree

9 files changed

+10
-14
lines changed

9 files changed

+10
-14
lines changed

lib/oids.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ var oids = module.exports = forge.pki.oids = forge.oids = forge.oids || {};
1414
function _IN(id, name) {
1515
oids[id] = name;
1616
oids[name] = id;
17-
};
17+
}
1818
// set id to name mapping only
1919
function _I_(id, name) {
2020
oids[id] = name;
21-
};
21+
}
2222

2323
// algorithm OIDs
2424
_IN('1.2.840.113549.1.1.1', 'rsaEncryption');

tests/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function contentServer(callback) {
7878
'[https-server] listening: https://localhost:' +
7979
httpsServer.address().port + '/');
8080
});
81-
};
81+
}
8282

8383
// start servers
8484
contentServer();

tests/unit/kem.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ var MD = require('../../lib/md');
44
var RSA = require('../../lib/rsa');
55
var UTIL = require('../../lib/util');
66
var JSBN = require('../../lib/jsbn');
7-
var RANDOM = require('../../lib/random');
87

98
(function() {
109
function FixedSecureRandom(str) {

tests/unit/md5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var UTIL = require('../../lib/util');
2323

2424
it('should digest "c\'\u00e8"', function() {
2525
var md = MD5.create();
26-
md.update("c\'\u00e8", 'utf8');
26+
md.update('c\'\u00e8', 'utf8');
2727
ASSERT.equal(md.digest().toHex(), '8ef7c2941d78fe89f31e614437c9db59');
2828
});
2929

tests/unit/rsa.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ var MGF = require('../../lib/mgf');
77
var PSS = require('../../lib/pss');
88
var RANDOM = require('../../lib/random');
99
var UTIL = require('../../lib/util');
10-
var support = require('./support');
1110

1211
(function() {
1312
var _pem = {
@@ -67,7 +66,7 @@ var support = require('./support');
6766
md.update('0123456789abcdef');
6867
var signature = pair.privateKey.sign(md);
6968
ASSERT.ok(pair.publicKey.verify(md.digest().getBytes(), signature));
70-
};
69+
}
7170

7271
// compare pairs
7372
function _pairCmp(pair1, pair2) {
@@ -515,7 +514,7 @@ var support = require('./support');
515514
var keySize = params.keySize;
516515

517516
it('should rsa encrypt using a ' + keySize + '-bit key', function() {
518-
var message = "it need's to be about 20% cooler"; // it need's better grammar too
517+
var message = 'it need\'s to be about 20% cooler'; // it need's better grammar too
519518

520519
/* First step, do public key encryption */
521520
var key = PKI.publicKeyFromPem(params.publicKeyPem);

tests/unit/sha1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var UTIL = require('../../lib/util');
2626

2727
it('should digest "c\'\u00e8"', function() {
2828
var md = SHA1.create();
29-
md.update("c\'\u00e8", 'utf8');
29+
md.update('c\'\u00e8', 'utf8');
3030
ASSERT.equal(
3131
md.digest().toHex(), '98c9a3f804daa73b68a5660d032499a447350c0d');
3232
});

tests/unit/sha256.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var UTIL = require('../../lib/util');
2929

3030
it('should digest "c\'\u00e8"', function() {
3131
var md = SHA256.create();
32-
md.update("c\'\u00e8", 'utf8');
32+
md.update('c\'\u00e8', 'utf8');
3333
ASSERT.equal(
3434
md.digest().toHex(),
3535
'1aa15c717afffd312acce2217ce1c2e5dabca53c92165999132ec9ca5decdaca');

tests/unit/sha512.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
var ASSERT = require('assert');
22
var SHA512 = require('../../lib/sha512');
3-
var UTIL = require('../../lib/util');
43

54
(function() {
65
describe('sha512', function() {
@@ -37,7 +36,7 @@ var UTIL = require('../../lib/util');
3736

3837
it('should digest "c\'\u00e8"', function() {
3938
var md = SHA512.create();
40-
md.update("c\'\u00e8", 'utf8');
39+
md.update('c\'\u00e8', 'utf8');
4140
ASSERT.equal(
4241
md.digest().toHex(),
4342
'9afdc0390dd91e81c63f858d1c6fcd9f949f3fc89dbdaed9e4211505bad63d8e8787797e2e9ea651285eb6954e51c4f0299837c3108cb40f1420bca1d237355c');
@@ -107,7 +106,7 @@ var UTIL = require('../../lib/util');
107106

108107
it('should digest "c\'\u00e8"', function() {
109108
var md = SHA384.create();
110-
md.update("c\'\u00e8", 'utf8');
109+
md.update('c\'\u00e8', 'utf8');
111110
ASSERT.equal(
112111
md.digest().toHex(),
113112
'382ec8a92d50abf57f7d0f934ff3969d6d354d30c96f1616678a920677867aba49521d2d535c0f285a3c2961c2034ea3');

webpack-tests.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* Copyright 2011-2016 Digital Bazaar, Inc.
77
*/
88
const path = require('path');
9-
const webpack = require('webpack');
109

1110
module.exports = {
1211
entry: {

0 commit comments

Comments
 (0)