]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Revert "Add error checking to Premailer API call"
authorGeoff Kimball <geoff@zurb.com>
Mon, 14 Dec 2015 21:53:54 +0000 (13:53 -0800)
committerGeoff Kimball <geoff@zurb.com>
Mon, 14 Dec 2015 21:53:54 +0000 (13:53 -0800)
This reverts commit f7334e5a711ab7a8782f5c754e00ba236107b567.

test/gulpfile.js

index 81143402aca33b57544895f5e5b1f06f68b4b66b..c0a8360b23a04110e6e80490606e2701d42b56dc 100644 (file)
@@ -59,16 +59,9 @@ gulp.task('inline', function() {
       var contents = file.contents.toString();
 
       premailer.prepare({ html: contents }, function(err, email) {
-        if (err) {
-          gutil.log('Premailer error:')
-          console.log(err);
-          cb()
-        }
-        else {
-          gutil.log('Premailer: processed ' + file.path + '.');
-          file.contents = new Buffer(email.html);
-          cb(null, file);
-        }
+        gutil.log('Premailer: processed ' + file.path + '.');
+        file.contents = new Buffer(email.html);
+        cb(err, file);
       });
     }))
     .pipe(injectTwo)