Skip to content

Commit

Permalink
Remove unnecessary breaks in default clauses of switch statements (#7462
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Aug 21, 2024
1 parent 4e5d47e commit 2703d10
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion packages/camera/camera/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,6 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
showInSnackBar('Audio access is restricted.');
default:
_showCameraException(e);
break;
}
}

Expand Down
1 change: 0 additions & 1 deletion packages/camera/camera_android/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,6 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
showInSnackBar('Unknown permission error.');
default:
_showCameraException(e);
break;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,6 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
showInSnackBar('Audio access is restricted.');
default:
_showCameraException(e);
break;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class CameraStateError extends JavaObject {
default:
description =
'There was an unspecified issue with the current camera state.';
break;
}

return '$code : $description';
Expand Down
1 change: 0 additions & 1 deletion packages/camera/camera_avfoundation/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,6 @@ class _CameraExampleHomeState extends State<CameraExampleHome>
showInSnackBar('Unknown permission error.');
default:
_showCameraException(e);
break;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ class _BooksScreenState extends State<BooksScreen>
case 0:
default:
context.go('/books/popular');
break;
}
}
}
1 change: 0 additions & 1 deletion packages/rfw/lib/src/dart/text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2065,7 +2065,6 @@ Iterable<_Token> _tokenize(String file) sync* {
default:
// ignored, comment
mode = _TokenizerMode.blockComment;
break;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class UrlLauncherAndroid extends UrlLauncherPlatform {
default:
// By default, open web URLs in the application.
inApp = url.startsWith('http:') || url.startsWith('https:');
break;
}

final bool succeeded;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ class UrlLauncherIOS extends UrlLauncherPlatform {
default:
// By default, open web URLs in the application.
inApp = url.startsWith('http:') || url.startsWith('https:');
break;
}

if (inApp) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@ class WebKitWebViewController extends PlatformWebViewController {
case 'log':
default:
level = JavaScriptLogLevel.log;
break;
}

_onConsoleMessageCallback!(
Expand Down

0 comments on commit 2703d10

Please sign in to comment.