Skip to content

Commit

Permalink
Simplify usage: type.with(actorName: "MainActor")
Browse files Browse the repository at this point in the history
  • Loading branch information
rjchrhl committed Sep 27, 2024
1 parent 5b2a5c2 commit cfa0abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/WeaverCodeGen/SwiftGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfa0abf

Please sign in to comment.