Skip to content

Commit e660afe

Browse files
Remove type assertion
1 parent a176436 commit e660afe

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-commons",
3-
"version": "2.3.0",
3+
"version": "2.3.1-rc.0",
44
"description": "Split JavaScript SDK common components",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",

src/evaluator/matchers/rbsegment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export function ruleBasedSegmentMatcherContext(segmentName: string, storage: ISt
3939
storage.segments.isInSegment(name, matchingKey) :
4040
type === RULE_BASED_SEGMENT ?
4141
ruleBasedSegmentMatcherContext(name, storage, log)({ key, attributes }, splitEvaluator) :
42-
type === LARGE_SEGMENT && (storage as IStorageSync).largeSegments ?
43-
(storage as IStorageSync).largeSegments!.isInSegment(name, matchingKey) :
42+
type === LARGE_SEGMENT && storage.largeSegments ?
43+
storage.largeSegments.isInSegment(name, matchingKey) :
4444
false;
4545
}
4646

src/storages/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ export interface IStorageBase<
458458
splits: TSplitsCache,
459459
rbSegments: TRBSegmentsCache,
460460
segments: TSegmentsCache,
461+
largeSegments?: TSegmentsCache,
461462
impressions: TImpressionsCache,
462463
impressionCounts: TImpressionsCountCache,
463464
events: TEventsCache,

0 commit comments

Comments
 (0)