Skip to content

Commit 1bb2d24

Browse files
bradymadden97Brady Madden
andauthored
Remove unnecessary any casts (#6457)
* remove unnecessary any casts * changelog * Update changelog with bug fix details * Remove changelog entry --------- Co-authored-by: Brady Madden <[email protected]>
1 parent 2d56adc commit 1bb2d24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/data/program_configuration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ export class ProgramConfiguration {
475475
for (const property in this.binders) {
476476
const binder = this.binders[property];
477477
if (binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder || binder instanceof CrossFadedCompositeBinder)
478-
(binder as AttributeBinder).populatePaintArray(newLength, feature, options);
478+
binder.populatePaintArray(newLength, feature, options);
479479
}
480480
}
481481
setConstantPatternPositions(posTo: ImagePosition, posFrom: ImagePosition) {
@@ -503,11 +503,11 @@ export class ProgramConfiguration {
503503
for (const property in this.binders) {
504504
const binder = this.binders[property];
505505
if ((binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder ||
506-
binder instanceof CrossFadedCompositeBinder) && (binder as any).expression.isStateDependent === true) {
506+
binder instanceof CrossFadedCompositeBinder) && binder.expression.isStateDependent === true) {
507507
//AHM: Remove after https://github.com/mapbox/mapbox-gl-js/issues/6255
508508
const value = (layer.paint as any).get(property);
509-
(binder as any).expression = value.value;
510-
(binder as AttributeBinder).updatePaintArray(pos.start, pos.end, feature, featureStates[id], options);
509+
binder.expression = value.value;
510+
binder.updatePaintArray(pos.start, pos.end, feature, featureStates[id], options);
511511
dirty = true;
512512
}
513513
}

0 commit comments

Comments
 (0)