Skip to content

Commit 2267f36

Browse files
committed
1 parent a055321 commit 2267f36

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Sources/ContainerizationEXT4/EXT4+FileTree.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ extension EXT4 {
6666
var components: [String] = [self.name]
6767
var current = self.parent
6868
while let ptr = current {
69-
if let data = ptr.pointee.name.data(using: .utf8),
70-
let str = String(data: data, encoding: .utf8)
71-
{
72-
components.append(str)
73-
}
69+
// Bug #42 (LOW): Pointless String→Data→String round-trip via UTF-8 re-encoding.
70+
// Same fix: sonnet-1m.
71+
components.append(ptr.pointee.name)
7472
current = ptr.pointee.parent
7573
}
7674
guard let rootName = components.last else {

0 commit comments

Comments
 (0)