From 00477ff83344287dc709fed43aa978f3b35aaf7e Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Thu, 11 Sep 2014 16:24:38 +0200 Subject: [PATCH] Renamed a var for consistence with the previous commit. --- lib/processImage.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/processImage.js b/lib/processImage.js index 52811fb..b29d300 100644 --- a/lib/processImage.js +++ b/lib/processImage.js @@ -46,9 +46,9 @@ module.exports = function (options) { } if (contentType && contentType.indexOf('image/') === 0) { - var filtersAndTargetFormat = getFilterInfosAndTargetContentTypeFromQueryString(queryString, options.root, options.root && Path.resolve(options.root, req.url.substr(1))), - targetContentType = filtersAndTargetFormat.targetContentType; - if (filtersAndTargetFormat.filterInfos.length === 0) { + var filterInfosAndTargetFormat = getFilterInfosAndTargetContentTypeFromQueryString(queryString, options.root, options.root && Path.resolve(options.root, req.url.substr(1))), + targetContentType = filterInfosAndTargetFormat.targetContentType; + if (filterInfosAndTargetFormat.filterInfos.length === 0) { return res.unhijack(true); } if (targetContentType) { @@ -66,7 +66,7 @@ module.exports = function (options) { } } - var filters = filtersAndTargetFormat.filterInfos.map(function (filterInfo) { + var filters = filterInfosAndTargetFormat.filterInfos.map(function (filterInfo) { return filterInfo.create(); });