Skip to content

Commit 18f1b92

Browse files
committed
Fix indentation.
1 parent 6459126 commit 18f1b92

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)