Skip to content

Commit 3e51d45

Browse files
chore(prettier): 🤖 ✨
1 parent 9b21d76 commit 3e51d45

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,11 @@ function alignNearest(
230230
}
231231

232232
function getParentElement(element: Node): Element | null {
233-
const parent = element.parentElement;
234-
if (parent == null) {
235-
return (element.getRootNode() as ShadowRoot).host || null;
236-
}
237-
return parent;
233+
const parent = element.parentElement
234+
if (parent == null) {
235+
return (element.getRootNode() as ShadowRoot).host || null
236+
}
237+
return parent
238238
}
239239

240240
export default (target: Element, options: Options): CustomScrollAction[] => {

0 commit comments

Comments
 (0)