Skip to content

Commit

Permalink
chore: remove unnecessary _contentRangeHeaderValue
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Mar 15, 2024
1 parent d633456 commit 314adca
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/verified-fetch/src/utils/byte-range-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export class ByteRangeContext {
* This property is purposefully only set in `set fileSize` and should not be set directly.
*/
private _fileSize: number | null | undefined
private readonly _contentRangeHeaderValue: string | undefined
private _body: SupportedBodyTypes = null
private readonly rangeRequestHeader: string | undefined
private readonly log: Logger
Expand Down Expand Up @@ -291,9 +290,6 @@ export class ByteRangeContext {
*/
// - Content-Range: <unit> */<byteSize> // this is purposefully not in jsdoc block
public get contentRangeHeaderValue (): string {
if (this._contentRangeHeaderValue != null) {
return this._contentRangeHeaderValue
}
if (!this.isValidRangeRequest) {
this.log.error('cannot get contentRangeHeaderValue for invalid range request')
throw new Error('Invalid range request')
Expand Down

0 comments on commit 314adca

Please sign in to comment.