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.
This commit is contained in:
Joe Bruno 2015-12-02 12:30:41 -05:00
parent 9c042f3cc2
commit 19f54ce753

View file

@ -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');