From 756629d2dc98046ebf09e6d35796898044a20811 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Sun, 25 Sep 2022 17:24:03 +0200 Subject: [PATCH] Remove unused variable --- Sources/Generator/Content/Element.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/Generator/Content/Element.swift b/Sources/Generator/Content/Element.swift index 3a3b4c9..57a9b1d 100644 --- a/Sources/Generator/Content/Element.swift +++ b/Sources/Generator/Content/Element.swift @@ -643,7 +643,6 @@ extension Element { } func findParent(from root: Element) -> Element? { - let parts = pathComponents.dropLast() var node = root for part in pathComponents.dropLast() { guard let child = node.find(elementWithFolder: part) else {