Skip to content

Commit

Permalink
rename variable to no longer shadow over function of same name
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Aug 4, 2020
1 parent f264aa5 commit c5db762
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fetch.js
Expand Up @@ -274,9 +274,9 @@ function Body() {

this.arrayBuffer = function() {
if (this._bodyArrayBuffer) {
var consumed = consumed(this)
if (consumed) {
return consumed
var isConsumed = consumed(this)
if (isConsumed) {
return isConsumed
}
if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
return Promise.resolve(
Expand Down

0 comments on commit c5db762

Please sign in to comment.