We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 936d3c8 commit 3419a04Copy full SHA for 3419a04
Sources/CapacitorPluginSyntaxTools/AddPluginToClass.swift
@@ -15,7 +15,7 @@ class AddPluginToClass: SyntaxRewriter {
15
return DeclSyntax(node)
16
}
17
18
- if let inheritedType = inheritedTypes.first(where: { $0.isNamed("CAPPlugin") }) {
+ if inheritedTypes.first(where: { $0.isNamed("CAPPlugin") }) != nil {
19
var newNode = capacitorPluginSyntax.addBridgedPluginConformance(node)
20
newNode.memberBlock.members.insert(contentsOf: capacitorPluginSyntax.createMemberBlock(),
21
at: node.memberBlock.members.startIndex)
0 commit comments