Skip to content

Commit a923714

Browse files
committed
Requested changes
1 parent 6c48a8e commit a923714

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ var crypto = require('crypto');
2424
* @param {Object} options The configuration object.
2525
*/
2626
var lusca = module.exports = function (options) {
27-
var headers = [], nonce;
27+
var headers = [];
28+
var nonce;
2829

2930
if (options) {
3031
Object.keys(lusca).forEach(function (key) {
@@ -33,8 +34,6 @@ var lusca = module.exports = function (options) {
3334
nonce = true;
3435
}
3536

36-
//if (key === 'csp' && lusca[key](config) && lusca[key](config)[styleNonce])
37-
3837
if (config) {
3938
headers.push(lusca[key](config));
4039
}
@@ -57,8 +56,7 @@ var lusca = module.exports = function (options) {
5756
next(err);
5857
return;
5958
}
60-
header(req, res, next);
61-
return;
59+
return header(req, res, next);
6260
};
6361
}(chain));
6462
});

0 commit comments

Comments
 (0)