Skip to content

Commit

Permalink
fixed ignoring styles.css without text.ejs
Browse files Browse the repository at this point in the history
I believe it fixes #12
  • Loading branch information
bratchenko committed Nov 8, 2012
1 parent 0114f48 commit 8e637f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/main.js
Expand Up @@ -198,6 +198,7 @@ var EmailTemplate = function(templateDirectory, defaults, done) {
fs.readFile(that.stylesheet, 'utf8', function(err, data) {
if (err) return callback(err);
if (data === '') return callback(that.stylesheet + ' was empty');
that.stylesheet = data;
batchCheck();
});
} else {
Expand Down

0 comments on commit 8e637f3

Please sign in to comment.