Explorar o código

modified comparison to use nil rather than null

dtmalloy1 %!s(int64=6) %!d(string=hai) anos
pai
achega
e2553d76f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ios/Classes/FlutterWebviewPlugin.m

+ 1 - 1
ios/Classes/FlutterWebviewPlugin.m

@@ -101,7 +101,7 @@ static NSString *const CHANNEL_NAME = @"flutter_webview_plugin";
     }
 
     CGRect rc;
-    if (rect != (id)[NSNull null]) {
+    if (rect != nil) {
         rc = [self parseRect:rect];
     } else {
         rc = self.viewController.view.bounds;