Skip to content

Commit 883f36e

Browse files
committed
Apply formatter
1 parent 67257dc commit 883f36e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/index.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type PluginOptions = {
1717
/** Containers to animate in parallel */
1818
containers: string[];
1919
/** Number of previous containers to keep around after the animation */
20-
keep: number | { [ container: string ]: number };
20+
keep: number | { [container: string]: number };
2121
};
2222

2323
type ContainerSet = {
@@ -202,10 +202,7 @@ export default class SwupParallelPlugin extends Plugin {
202202
protected visitHasPotentialParallelAnimation(visit: Visit) {
203203
// Checking for visit.animation.parallel !== false here allows explicitly
204204
// disabling parallel animations in user hooks before this plugin executes
205-
return (
206-
visit.animation.parallel !== false &&
207-
this.visitHasParallelContainers(visit)
208-
);
205+
return visit.animation.parallel !== false && this.visitHasParallelContainers(visit);
209206
}
210207

211208
/** Check if any of a visit's containers are animated in parallel */

0 commit comments

Comments
 (0)