Skip to content

Commit b10d747

Browse files
fatbobmanclaude
andcommitted
style: apply SwiftFormat to SimpleZip.swift
Minor whitespace formatting changes applied automatically by SwiftFormat. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cf02ebe commit b10d747

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Objects2XLSX/Utils/SimpleZip.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,11 @@ public struct SimpleZip: Sendable {
307307
// Calculate relative path by removing the base directory path
308308
// We need to preserve the internal XLSX structure like "xl/workbook.xml", "_rels/.rels", etc.
309309
let relativePath: String
310-
310+
311311
// Use URL-based path calculation to handle symlinks and path resolution
312312
let resolvedDirectoryURL = directoryURL.resolvingSymlinksInPath()
313313
let resolvedFileURL = fileURL.resolvingSymlinksInPath()
314-
314+
315315
if resolvedFileURL.path.hasPrefix(resolvedDirectoryURL.path) {
316316
let basePath = resolvedDirectoryURL.path.hasSuffix("/") ? resolvedDirectoryURL.path : resolvedDirectoryURL.path + "/"
317317
relativePath = String(resolvedFileURL.path.dropFirst(basePath.count))

0 commit comments

Comments
 (0)