File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,9 @@ module.exports = function (options) {
2828
2929 if ( file . isStream ( ) ) {
3030 try {
31- file . contents = file . contents . pipe ( iconv . decodeStream ( options . from , options . iconv . decode ) )
32- . pipe ( iconv . encodeStream ( options . to , options . iconv . encode ) ) ;
31+ file . contents = file . contents
32+ . pipe ( iconv . decodeStream ( options . from , options . iconv . decode ) )
33+ . pipe ( iconv . encodeStream ( options . to , options . iconv . encode ) ) ;
3334 this . push ( file ) ;
3435 } catch ( err ) {
3536 this . emit ( 'error' , new gutil . PluginError ( 'gulp-convert-encoding' , err ) ) ;
@@ -39,7 +40,7 @@ module.exports = function (options) {
3940 if ( file . isBuffer ( ) ) {
4041 try {
4142 var content = iconv . decode ( file . contents , options . from , options . iconv . decode ) ;
42- file . contents = iconv . encode ( content , options . to , options . iconv . encode ) ;
43+ file . contents = iconv . encode ( content , options . to , options . iconv . encode ) ;
4344 this . push ( file ) ;
4445 } catch ( err ) {
4546 this . emit ( 'error' , new gutil . PluginError ( 'gulp-convert-encoding' , err ) ) ;
You can’t perform that action at this time.
0 commit comments