Allow use of toBuffer+toFile w/ same instance #3044

This commit is contained in:
Lovell Fuller
2022-02-03 22:01:46 +00:00
parent 2b01951306
commit 424660278d
3 changed files with 18 additions and 0 deletions

View File

@@ -139,6 +139,7 @@ function toBuffer (options, callback) {
} else if (this.options.resolveWithObject) {
this.options.resolveWithObject = false;
}
this.options.fileOut = '';
return this._pipeline(is.fn(options) ? options : callback);
}