Skip to content

Commit

Permalink
manual adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
goderbauer committed Dec 14, 2024
1 parent 1fdbe65 commit 950ddd9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/ui/hooks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ typedef _ListStringArgFunction = Object? Function(List<String> args);

@pragma('vm:entry-point')
void _runMain(Function startMainIsolateFunction, Function userMainFunction, List<String> args) {
// ignore: avoid_dynamic_calls
startMainIsolateFunction(() {
// ignore: avoid_dynamic_calls
if (userMainFunction is _ListStringArgFunction) {
userMainFunction(args);
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/web_ui/lib/src/engine/services/message_codecs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ class StandardMessageCodec implements MessageCodec<dynamic> {
} else if (value is double) {
buffer.putUint8(_valueFloat64);
buffer.putFloat64(value);
} else if (value is int) {
// ignore: avoid_double_and_int_checks
} else if (value is int) {
if (-0x7fffffff - 1 <= value && value <= 0x7fffffff) {
buffer.putUint8(_valueInt32);
buffer.putInt32(value);
Expand Down
4 changes: 2 additions & 2 deletions lib/web_ui/test/engine/view/view_constraints_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ Future<void> testMain() async {
expect(
ViewConstraints.fromJs(constraints, size),
const ViewConstraints(
// ignore: avoid_redundant_argument_values
minWidth: 500,
maxWidth: double.infinity,
// ignore: avoid_redundant_argument_values
maxWidth: double.infinity,
minHeight: 300,
// ignore: avoid_redundant_argument_values
maxHeight: double.infinity,
),
);
Expand Down
2 changes: 1 addition & 1 deletion testing/dart/image_filter_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ void main() async {

List<ColorFilter> colorFilters() {
// Create new color filter instances on each invocation.
// ignore: prefer_const_constructors
return <ColorFilter>[
// ignore: prefer_const_constructors
ColorFilter.mode(green, BlendMode.color), // ignore: prefer_const_constructors
ColorFilter.mode(red, BlendMode.color), // ignore: prefer_const_constructors
ColorFilter.mode(red, BlendMode.screen), // ignore: prefer_const_constructors
Expand Down
2 changes: 1 addition & 1 deletion testing/scenario_app/lib/src/platform_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ List<int> _to64(num value) {
final Uint8List temp = Uint8List(15);
if (value is double) {
temp.buffer.asByteData().setFloat64(7, value, Endian.little);
} else if (value is int) {
// ignore: avoid_double_and_int_checks
} else if (value is int) {
temp.buffer.asByteData().setInt64(7, value, Endian.little);
}
return temp;
Expand Down
3 changes: 2 additions & 1 deletion tools/const_finder/test/fixtures/lib/box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,11 @@ const Box box2_99 = Box(box2_98, box2_98);

Object confuse(Box x) {
try {
// ignore: only_throw_errors
throw x;
} catch (e) {
return e;
} // ignore: only_throw_errors
}
}

void main() {
Expand Down

0 comments on commit 950ddd9

Please sign in to comment.