Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaDemchenko committed Aug 22, 2024
1 parent 7532a4e commit 290bdd3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/p2p-media-loader-core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,9 @@ export class Core<TStream extends Stream = Stream> {
}

if (!this.segmentStorage) {
!this.commonCoreConfig.customSegmentStorage
? (this.segmentStorage = new SegmentsMemoryStorage())
: (this.segmentStorage =
new this.commonCoreConfig.customSegmentStorage());
this.segmentStorage = this.commonCoreConfig.customSegmentStorage
? new this.commonCoreConfig.customSegmentStorage()
: new SegmentsMemoryStorage();

await this.segmentStorage.initialize(
this.commonCoreConfig,
Expand Down

0 comments on commit 290bdd3

Please sign in to comment.