Skip to content

Commit 613ef9e

Browse files
authored
Fix: lint, removed unused variables (#416)
1 parent 1200eb5 commit 613ef9e

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/index.tsx

+4-9
Original file line numberDiff line numberDiff line change
@@ -695,14 +695,6 @@ export class Slider extends PureComponent<SliderProps, SliderState> {
695695
valueVisibleStyle.opacity = 0;
696696
}
697697

698-
const interpolatedRawValues = this._getRawValues(
699-
interpolatedTrackValues,
700-
);
701-
const minRawValue = Math.min(...interpolatedRawValues);
702-
const minThumbValue = new Animated.Value(minRawValue);
703-
const maxRawValue = Math.max(...interpolatedRawValues);
704-
const maxThumbValue = new Animated.Value(maxRawValue);
705-
706698
const _value = values[0].__getValue();
707699
const sliderWidthCoefficient =
708700
containerSize.width /
@@ -736,7 +728,10 @@ export class Slider extends PureComponent<SliderProps, SliderState> {
736728
width:
737729
interpolatedTrackValues.length === 1
738730
? Animated.add(minTrackWidth, thumbSize.width / 2)
739-
: Animated.add(Animated.multiply(minTrackWidth, -1), maxTrackWidth),
731+
: Animated.add(
732+
Animated.multiply(minTrackWidth, -1),
733+
maxTrackWidth,
734+
),
740735
backgroundColor: minimumTrackTintColor,
741736
...valueVisibleStyle,
742737
...clearBorderRadius,

0 commit comments

Comments
 (0)