Skip to content

Commit

Permalink
Update: Make variable/argument names consistent across project
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkemperman authored and phated committed Nov 30, 2017
1 parent 3a23cb8 commit e699278
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/src/read-contents/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var through2 = require('through2');
var through = require('through2');
var valueOrFunction = require('value-or-function');
var koalas = require('koalas');

Expand Down Expand Up @@ -45,7 +45,7 @@ function readContents(opt) {
}
}

return through2.obj(opt, readFile);
return through.obj(opt, readFile);
}

module.exports = readContents;
8 changes: 4 additions & 4 deletions lib/src/resolve-symlinks.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
'use strict';

var through2 = require('through2');
var through = require('through2');
var fs = require('graceful-fs');

var koalas = require('koalas');
var valueOrFunction = require('value-or-function');
var boolean = valueOrFunction.boolean;

function resolveSymlinks(options) {
function resolveSymlinks(opt) {

var resolveSymlinks = koalas(boolean(options.resolveSymlinks), true);
var resolveSymlinks = koalas(boolean(opt.resolveSymlinks), true);

// A stat property is exposed on file objects as a (wanted) side effect
function resolveFile(globFile, enc, callback) {
Expand Down Expand Up @@ -46,7 +46,7 @@ function resolveSymlinks(options) {
}
}

return through2.obj(options, resolveFile);
return through.obj(opt, resolveFile);
}

module.exports = resolveSymlinks;

0 comments on commit e699278

Please sign in to comment.