Skip to content

Commit 3419a04

Browse files
committed
chore: fix warning
1 parent 936d3c8 commit 3419a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CapacitorPluginSyntaxTools/AddPluginToClass.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AddPluginToClass: SyntaxRewriter {
1515
return DeclSyntax(node)
1616
}
1717

18-
if let inheritedType = inheritedTypes.first(where: { $0.isNamed("CAPPlugin") }) {
18+
if inheritedTypes.first(where: { $0.isNamed("CAPPlugin") }) != nil {
1919
var newNode = capacitorPluginSyntax.addBridgedPluginConformance(node)
2020
newNode.memberBlock.members.insert(contentsOf: capacitorPluginSyntax.createMemberBlock(),
2121
at: node.memberBlock.members.startIndex)

0 commit comments

Comments
 (0)