Skip to content

Commit

Permalink
Variable declaration change from CR.
Browse files Browse the repository at this point in the history
  • Loading branch information
njostonehouse committed Nov 24, 2014
1 parent f2ab425 commit f4ea69d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/loadByFileSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module.exports = function( packagePath ) {
{ 'noblanks' : true }
);

var filePaths = { };
var filePaths = { JavaScript: [], Css: [] };

var jsFiles = xml.get(
'//xmlns:JavaScript',
'http://schemas.desire2learn.com/xml/schemas/package.xsd'
);
filePaths.JavaScript = [];

if( jsFiles ) {
jsFiles.childNodes().forEach(function( jsFile ) {
var filePath = jsFile.attr("Path");
Expand All @@ -38,7 +38,6 @@ module.exports = function( packagePath ) {
'http://schemas.desire2learn.com/xml/schemas/package.xsd'
);

filePaths.Css = [];
if( cssFiles ) {
cssFiles.childNodes().forEach( function( cssFile ) {
var filePath = cssFile.attr("Path");
Expand Down

0 comments on commit f4ea69d

Please sign in to comment.