From cfa0abfbc3c49d32eb48227b1a90d076c5614ef0 Mon Sep 17 00:00:00 2001 From: Robert John Churchill Date: Fri, 27 Sep 2024 09:49:23 -0700 Subject: [PATCH] Simplify usage: type.with(actorName: "MainActor") --- Sources/WeaverCodeGen/SwiftGenerator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WeaverCodeGen/SwiftGenerator.swift b/Sources/WeaverCodeGen/SwiftGenerator.swift index bdbb16e..843cb8b 100644 --- a/Sources/WeaverCodeGen/SwiftGenerator.swift +++ b/Sources/WeaverCodeGen/SwiftGenerator.swift @@ -357,7 +357,7 @@ private extension MetaWeaverFile { var type = Type(identifier: .mainDependencyContainer) if self.mainActor == true { - type = type.with(actorName: self.mainActor == true ? "MainActor" : nil) + type = type.with(actorName: "MainActor") } type = type