From bcc7f6d5693d913acc42539ea5765f0fe89ccef8 Mon Sep 17 00:00:00 2001 From: Alastair Houghton Date: Thu, 21 Mar 2024 16:32:19 +0000 Subject: [PATCH] Update Sources/System/FilePath/FilePathTemp.swift Co-authored-by: Karoy Lorentey --- Sources/System/FilePath/FilePathTemp.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/System/FilePath/FilePathTemp.swift b/Sources/System/FilePath/FilePathTemp.swift index 23a0816..ea67428 100644 --- a/Sources/System/FilePath/FilePathTemp.swift +++ b/Sources/System/FilePath/FilePathTemp.swift @@ -9,8 +9,10 @@ // MARK: - API -public func withTemporaryPath(basename: FilePath.Component, - _ body: (FilePath) throws -> R) throws -> R { +public func withTemporaryPath( + basename: FilePath.Component, + _ body: (FilePath) throws -> R +) throws -> R { let temporaryDir = try createUniqueTemporaryDirectory(basename: basename) defer { try? recursiveRemove(at: temporaryDir)