From e7c8866bd3564fb660f688423aab9c5975a33984 Mon Sep 17 00:00:00 2001 From: "Alkenso (Vladimir Vashurkin)" Date: Tue, 10 Dec 2024 05:33:25 +0200 Subject: [PATCH] Fix SpellbookLog.try syntax for trailing closure --- Sources/SpellbookFoundation/Common/SpellbookLog.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SpellbookFoundation/Common/SpellbookLog.swift b/Sources/SpellbookFoundation/Common/SpellbookLog.swift index f5787c9..4641b05 100644 --- a/Sources/SpellbookFoundation/Common/SpellbookLog.swift +++ b/Sources/SpellbookFoundation/Common/SpellbookLog.swift @@ -127,7 +127,7 @@ extension SpellbookLog { function: StaticString = #function, line: Int = #line, context: Any? = nil, - body: () throws -> R + _ body: () throws -> R ) -> R? { do { return try body() @@ -153,7 +153,7 @@ extension SpellbookLog { function: StaticString = #function, line: Int = #line, context: Any? = nil, - body: () throws -> R + _ body: () throws -> R ) -> R? { do { return try body()