From e6cd8eb055a790ef4bc0a0aaa0ed1b09b4eb180f Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 19 Nov 2025 22:03:25 -0800 Subject: [PATCH] fix(ios): remove unused variable warning in AppDelegate Replace if let binding with boolean is check for CAPBridgedPlugin conformance test. This eliminates the compiler warning about unused variable 'capacitorPluginType' while maintaining the same diagnostic functionality. --- test-apps/ios-test-app/ios/App/App/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-apps/ios-test-app/ios/App/App/AppDelegate.swift b/test-apps/ios-test-app/ios/App/App/AppDelegate.swift index 0fdc9d3..82fc8e6 100644 --- a/test-apps/ios-test-app/ios/App/App/AppDelegate.swift +++ b/test-apps/ios-test-app/ios/App/App/AppDelegate.swift @@ -92,7 +92,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD // Test if class can be cast to CapacitorPlugin.Type if let pluginType = aClass as? CAPPlugin.Type { // Try casting to CapacitorPlugin (which is CAPPlugin & CAPBridgedPlugin) - if let capacitorPluginType = pluginType as? (CAPPlugin & CAPBridgedPlugin).Type { + if pluginType is (CAPPlugin & CAPBridgedPlugin).Type { NSLog("DNP-DEBUG: ✅ Can cast to (CAPPlugin & CAPBridgedPlugin).Type") } else { NSLog("DNP-DEBUG: ❌ Cannot cast to (CAPPlugin & CAPBridgedPlugin).Type")