Skip to content

Commit

Permalink
[fix] finished jshint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnt committed Sep 25, 2013
1 parent 17399e7 commit 455f97e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/caronte/index.js
Expand Up @@ -57,14 +57,13 @@ function createRightProxy(type) {

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

['target', 'forward'].forEach(
function(e) {
if (typeof options[e] === 'string')
options[e] = parse_url(options[e]);
['target', 'forward'].forEach(function(e) {
if (typeof options[e] === 'string')
options[e] = parse_url(options[e]);
});

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

/**
* Call of passes functions
Expand All @@ -76,7 +75,7 @@ function createRightProxy(type) {
*/

options.ee.emit(evnt + 'begin', req, res);
var val = pass(req, res, options, head);
val = pass(req, res, options, head);
options.ee.emit(evnt + 'end');

return val;
Expand Down

0 comments on commit 455f97e

Please sign in to comment.