Skip to content

Commit 00e0c5e

Browse files
authored
Merge pull request #78173 from tshortli/as-will-always-succeed
SwiftMacros: Remove unnecessary `.as()` cast from DistributedResolvableMacro
2 parents 01da59f + b1d7ccc commit 00e0c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Macros/Sources/SwiftMacros/DistributedResolvableMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ extension DistributedResolvableMacro {
174174

175175
// The $Stub is always generic over the actor system: $Stub<ActorSystem>
176176
var primaryTypeParams: [String] = primaryAssociatedTypes.map {
177-
$0.as(PrimaryAssociatedTypeSyntax.self)!.name.trimmed.text
177+
$0.name.trimmed.text
178178
}
179179

180180
// Don't duplicate the ActorSystem type parameter if it already was declared

0 commit comments

Comments
 (0)