Skip to content

Commit e377ea0

Browse files
committed
Set ._src in the .src() method
1 parent 8bf6687 commit e377ea0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ function BinWrapper(opts) {
2222

2323
this.opts = opts || {};
2424
this.opts.strip = this.opts.strip <= 0 ? 0 : !this.opts.strip ? 1 : this.opts.strip;
25-
this._src = [];
2625
}
2726

2827
/**
@@ -39,6 +38,7 @@ BinWrapper.prototype.src = function (src, os, arch) {
3938
return this._src;
4039
}
4140

41+
this._src = this._src || [];
4242
this._src.push({
4343
url: src,
4444
os: os,

0 commit comments

Comments
 (0)