Skip to content

Commit e699278

Browse files
erikkempermanphated
authored andcommitted
Update: Make variable/argument names consistent across project
1 parent 3a23cb8 commit e699278

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/src/read-contents/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var through2 = require('through2');
3+
var through = require('through2');
44
var valueOrFunction = require('value-or-function');
55
var koalas = require('koalas');
66

@@ -45,7 +45,7 @@ function readContents(opt) {
4545
}
4646
}
4747

48-
return through2.obj(opt, readFile);
48+
return through.obj(opt, readFile);
4949
}
5050

5151
module.exports = readContents;

lib/src/resolve-symlinks.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
'use strict';
22

3-
var through2 = require('through2');
3+
var through = require('through2');
44
var fs = require('graceful-fs');
55

66
var koalas = require('koalas');
77
var valueOrFunction = require('value-or-function');
88
var boolean = valueOrFunction.boolean;
99

10-
function resolveSymlinks(options) {
10+
function resolveSymlinks(opt) {
1111

12-
var resolveSymlinks = koalas(boolean(options.resolveSymlinks), true);
12+
var resolveSymlinks = koalas(boolean(opt.resolveSymlinks), true);
1313

1414
// A stat property is exposed on file objects as a (wanted) side effect
1515
function resolveFile(globFile, enc, callback) {
@@ -46,7 +46,7 @@ function resolveSymlinks(options) {
4646
}
4747
}
4848

49-
return through2.obj(options, resolveFile);
49+
return through.obj(opt, resolveFile);
5050
}
5151

5252
module.exports = resolveSymlinks;

0 commit comments

Comments
 (0)