Skip to content

Commit aaa9655

Browse files
committed
fix analyzer issues
1 parent 310fa0c commit aaa9655

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

flutter_inappwebview_web/lib/web/in_app_web_view_web_element.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class InAppWebViewWebElement implements Disposable {
274274
final String contentType =
275275
httpRequest.getResponseHeader('content-type') ?? 'text/html';
276276
return 'data:$contentType,' +
277-
Uri.encodeComponent(httpRequest.responseText ?? '');
277+
Uri.encodeComponent(httpRequest.responseText);
278278
}
279279

280280
String getIFrameId() {
@@ -425,12 +425,10 @@ class InAppWebViewWebElement implements Disposable {
425425
Set<Sandbox> getSandbox() {
426426
var sandbox = iframe.sandbox;
427427
Set<Sandbox> values = Set();
428-
if (sandbox != null) {
429-
for (int i = 0; i < sandbox.length; i++) {
430-
var token = Sandbox.fromNativeValue(sandbox.item(i));
431-
if (token != null) {
432-
values.add(token);
433-
}
428+
for (int i = 0; i < sandbox.length; i++) {
429+
var token = Sandbox.fromNativeValue(sandbox.item(i));
430+
if (token != null) {
431+
values.add(token);
434432
}
435433
}
436434
return values.isEmpty ? Set.from(Sandbox.values) : values;

flutter_inappwebview_web/lib/web/web_platform.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,5 @@ Future<JSAny?> _dartNativeCommunication(String method, num viewId,
110110
break;
111111
}
112112
}
113+
return null;
113114
}

0 commit comments

Comments
 (0)