test: fix lint fail

This commit is contained in:
shao 2019-08-16 18:15:28 +08:00
parent 2416d17b74
commit 4968052574
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
// eslint-disable-next-line import/prefer-default-export
export function easeInOutCubic(t: number, b: number, c: number, d: number) {
const cc = c - b;
t /= d / 2;

View File

@ -29,8 +29,8 @@ export default function scrollTo(y: number, options: ScrollToOptions = {}) {
}
if (time < duration) {
raf(frameFunc);
} else {
if (typeof callback === 'function') callback();
} else if (typeof callback === 'function') {
callback();
}
};
raf(frameFunc);