Skip to content

Commit

Permalink
Address linter warnings
Browse files Browse the repository at this point in the history
This adds a missing comma and removes unnecessary `break` statements.

[changelog]
changed: addressed linter warnings for missing comma and unnecessary `break` statements

<!-- ps-id: 4909f211-704e-4d14-8465-1bbf18a5c3ca -->
  • Loading branch information
frankylee committed Mar 15, 2024
1 parent fbad7a8 commit 7b13d52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/src/utils/html_utils.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:convert';
import 'dart:typed_data';

import 'package:path/path.dart' as p;
import 'package:uuid/uuid.dart';
import 'package:webviewx/src/utils/constants.dart';
Expand Down Expand Up @@ -243,7 +244,7 @@ class HtmlUtils {
return embedJsInHtmlSource(
source,
{
'parent.$jsToDartConnectorFN$windowDisambiguator && parent.$jsToDartConnectorFN$windowDisambiguator(window)'
'parent.$jsToDartConnectorFN$windowDisambiguator && parent.$jsToDartConnectorFN$windowDisambiguator(window)',
},
position: EmbedPosition.aboveHeadCloseTag,
);
Expand Down
2 changes: 0 additions & 2 deletions lib/src/view/impl/web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ class WebViewXState extends State<WebViewX> {
windowDisambiguator: iframeViewType,
forWeb: true,
);
break;
case SourceType.url:
case SourceType.urlBypass:
if (source == 'about:blank') {
Expand All @@ -450,7 +449,6 @@ class WebViewXState extends State<WebViewX> {
headers: model.headers,
);
}
break;
}
}

Expand Down

0 comments on commit 7b13d52

Please sign in to comment.