Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
fix: Use the correct variable name
Browse files Browse the repository at this point in the history
Fixes #42.
  • Loading branch information
bengourley committed May 23, 2019
1 parent 9dba88f commit afb3309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/prepare-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ module.exports = function prepareRequest (options) {
* valid file path or whether it's a Buffer object (used for sourceMap when uploadSources
* is set to `true`, because the sourcemap is modified).
*
* @param {string|Buffer} path The path of the file, or the file Buffer
* @param {string|Buffer} pathOrBuffer The path of the file, or the file Buffer
* @returns {fs.ReadStream|Buffer}
*/
function getSendableSource (pathOrBuffer) {
if (typeof path === 'string') {
if (typeof pathOrBuffer === 'string') {
return createReadStream(pathOrBuffer)
} else if (Buffer.isBuffer(pathOrBuffer)) {
return pathOrBuffer
Expand Down

0 comments on commit afb3309

Please sign in to comment.