From 314adca7aae4bceddf0f4db9f75bacae0933874b Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Fri, 15 Mar 2024 12:23:39 -0700 Subject: [PATCH] chore: remove unnecessary _contentRangeHeaderValue --- packages/verified-fetch/src/utils/byte-range-context.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/verified-fetch/src/utils/byte-range-context.ts b/packages/verified-fetch/src/utils/byte-range-context.ts index 5d1f9d66..c1bc6b2f 100644 --- a/packages/verified-fetch/src/utils/byte-range-context.ts +++ b/packages/verified-fetch/src/utils/byte-range-context.ts @@ -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 @@ -291,9 +290,6 @@ export class ByteRangeContext { */ // - Content-Range: */ // 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')