Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Aug 27, 2021
1 parent 70cfe04 commit f290ad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-core-utils/src/fetch-remote-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ const requestRemoteNode = (
})

let haveAllBytesBeenWritten = false
let totalSize = null
let totalSize: number | null = null
responseStream.on(`downloadProgress`, progress => {
if (
progress.total != null &&
(!totalSize || (totalSize as number) < progress.total)
(!totalSize || totalSize < progress.total)
) {
totalSize = progress.total
}
Expand Down

0 comments on commit f290ad5

Please sign in to comment.