Parcourir la source

Reformat the code.

Naotoshi Fujita il y a 2 ans
Parent
commit
5e088b04ec
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/js/components/Move/Move.ts

+ 3 - 1
src/js/components/Move/Move.ts

@@ -251,7 +251,9 @@ export function Move(
    */
   function offset( index: number ): number {
     const { focus } = options;
-    return focus === 'center' ? ( listSize() - slideSize( index, true ) ) / 2 : +focus * slideSize( index ) || 0;
+    return focus === 'center'
+      ? ( listSize() - slideSize( index, true ) ) / 2
+      : +focus * slideSize( index ) || 0;
   }
 
   /**