style(): fix shadowed vars (#24609)

This commit is contained in:
Amanda Smith
2022-01-20 10:56:33 -06:00
committed by GitHub
parent af0135ce7d
commit f295134624
5 changed files with 14 additions and 13 deletions

View File

@ -225,13 +225,13 @@ export class Toggle implements ComponentInterface {
}
}
const shouldToggle = (isRTL: boolean, checked: boolean, deltaX: number, margin: number): boolean => {
const shouldToggle = (rtl: boolean, checked: boolean, deltaX: number, margin: number): boolean => {
if (checked) {
return (!isRTL && (margin > deltaX)) ||
(isRTL && (- margin < deltaX));
return (!rtl && (margin > deltaX)) ||
(rtl && (- margin < deltaX));
} else {
return (!isRTL && (- margin < deltaX)) ||
(isRTL && (margin > deltaX));
return (!rtl && (- margin < deltaX)) ||
(rtl && (margin > deltaX));
}
};