Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 6, 2018
1 parent faab29d commit bc2cdd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/createSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function createSlider(Component) {

if (utils.isDev()) {
const { step, max, min } = props;
const isPointDiffEven = isFinite(max - min) ? (max - min) % step === 0 : true;
const isPointDiffEven = isFinite(max - min) ? (max - min) % step === 0 : true; // eslint-disable-line
warning(
step && Math.floor(step) === step ? isPointDiffEven : true,
'Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)',
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function ensureValueInRange(val, { max, min }) {

export function ensureValuePrecision(val, props) {
const { step } = props;
const closestPoint = isFinite(getClosestPoint(val, props)) ? getClosestPoint(val, props) : 0;
const closestPoint = isFinite(getClosestPoint(val, props)) ? getClosestPoint(val, props) : 0; // eslint-disable-line
return step === null ? closestPoint :
parseFloat(closestPoint.toFixed(getPrecision(step)));
}
Expand Down

0 comments on commit bc2cdd7

Please sign in to comment.