Skip to content

Commit

Permalink
Update: Refactor option handling for src()
Browse files Browse the repository at this point in the history
  • Loading branch information
yocontra authored and phated committed Nov 28, 2017
1 parent c55db31 commit bbddeec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function src(glob, opt) {
read: true,
buffer: true,
sourcemaps: false,
passthrough: false
}, opt);
var pass, inputPass;

Expand All @@ -42,7 +43,7 @@ function src(glob, opt) {
.pipe(resolveSymlinks())
.pipe(through.obj(createFile));

if (options.since) {
if (options.since != null) {
outputStream = outputStream
.pipe(filterSince(options.since));
}
Expand All @@ -52,7 +53,7 @@ function src(glob, opt) {
.pipe(getContents(options));
}

if (options.passthrough) {
if (options.passthrough === true) {
inputPass = through.obj();
outputStream = duplexify.obj(inputPass, merge(outputStream, inputPass));
}
Expand Down

0 comments on commit bbddeec

Please sign in to comment.