From 19f54ce75362c7bf83b49c851a2101e625ab04d9 Mon Sep 17 00:00:00 2001 From: Joe Bruno Date: Wed, 2 Dec 2015 12:30:41 -0500 Subject: [PATCH] changed var srcs to filteredSources + Travis Fix I changed var srcs to filteredSources to be more semantic and closer to the existing formatting. I moved the var declaration to the top level in an attempt to comply with the established coding standards. --- index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index ff69010..335f0d6 100644 --- a/index.js +++ b/index.js @@ -69,7 +69,8 @@ var gulpSass = function gulpSass(options, sync) { sassMapFile, sassFileSrc, sassFileSrcPath, - sourceFileIndex; + sourceFileIndex + filteredSources; // Build Source Maps! if (sassObj.map) { @@ -90,12 +91,12 @@ var gulpSass = function gulpSass(options, sync) { } } // Remove 'stdin' from souces and replace with filenames! - var srcs = sassMap.sources.filter(function(src) { + filteredSources = sassMap.sources.filter(function(src) { if (src.indexOf('stdin') === -1) { return src; - } + } }); - sassMap.sources = srcs; + sassMap.sources = filteredSources; sassMap.sources.unshift(sassFileSrc); // Replace the map file with the original file name (but new extension) sassMap.file = gutil.replaceExtension(sassFileSrc, '.css');