Skip to content

Commit 76d9c6c

Browse files
committed
Ignore empty files (close #66)
1 parent d9cbac1 commit 76d9c6c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/csscomb.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,9 @@ Comb.prototype = {
9090
* @param {String} filename
9191
*/
9292
processString: function(text, filename) {
93+
if (!text) return text;
9394
var tree;
9495
var string = JSON.stringify;
95-
if (typeof text === 'undefined') {
96-
throw new Error('Undefined file content ' + filename + ': ' + string(text));
97-
}
9896
try {
9997
tree = gonzales.srcToCSSP(text);
10098
} catch (e) {

0 commit comments

Comments
 (0)