Skip to content

Commit

Permalink
Always traverse all files in the given folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simen Brekken authored and deepsweet committed Jun 24, 2013
1 parent ab09109 commit fbb99b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/svgo/coa.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,6 @@ function optimizeFolder(path, config) {
// print optimization profit info
printProfitInfo(inBytes, outBytes);

if (++i < files.length) {
optimizeFile(files[i]);
}

});

});
Expand All @@ -417,6 +413,10 @@ function optimizeFolder(path, config) {

}

if (++i < files.length) {
optimizeFile(files[i]);
}

}

optimizeFile(files[i]);
Expand Down

0 comments on commit fbb99b2

Please sign in to comment.