Skip to content

Commit

Permalink
Apply formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
daun committed Nov 22, 2023
1 parent 67257dc commit 883f36e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type PluginOptions = {
/** Containers to animate in parallel */
containers: string[];
/** Number of previous containers to keep around after the animation */
keep: number | { [ container: string ]: number };
keep: number | { [container: string]: number };
};

type ContainerSet = {
Expand Down Expand Up @@ -202,10 +202,7 @@ export default class SwupParallelPlugin extends Plugin {
protected visitHasPotentialParallelAnimation(visit: Visit) {
// Checking for visit.animation.parallel !== false here allows explicitly
// disabling parallel animations in user hooks before this plugin executes
return (
visit.animation.parallel !== false &&
this.visitHasParallelContainers(visit)
);
return visit.animation.parallel !== false && this.visitHasParallelContainers(visit);
}

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

0 comments on commit 883f36e

Please sign in to comment.