Skip to content

Commit 455f97e

Browse files
committed
[fix] finished jshint fixes
1 parent 17399e7 commit 455f97e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/caronte/index.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,13 @@ function createRightProxy(type) {
5757

5858
options.ee.emit(ev + 'begin', req, res);
5959

60-
['target', 'forward'].forEach(
61-
function(e) {
62-
if (typeof options[e] === 'string')
63-
options[e] = parse_url(options[e]);
60+
['target', 'forward'].forEach(function(e) {
61+
if (typeof options[e] === 'string')
62+
options[e] = parse_url(options[e]);
6463
});
6564

6665
passes.some(function(pass) {
67-
var evnt = ev + pass.name.toLowerCase() + ':';
66+
var evnt = ev + pass.name.toLowerCase() + ':', val;
6867

6968
/**
7069
* Call of passes functions
@@ -76,7 +75,7 @@ function createRightProxy(type) {
7675
*/
7776

7877
options.ee.emit(evnt + 'begin', req, res);
79-
var val = pass(req, res, options, head);
78+
val = pass(req, res, options, head);
8079
options.ee.emit(evnt + 'end');
8180

8281
return val;

0 commit comments

Comments
 (0)