Skip to content

Commit

Permalink
Apply review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JSUYA committed Mar 7, 2024
1 parent 2150d03 commit b59cb44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Specify analysis options.
#
# This file is a copy of analysis_options.yaml from flutter repo
# as of 2023-12-18, but with some modifications marked with
# "DIFFERENT FROM FLUTTER/FLUTTER" below. The file is expected to
# be kept in sync with the master file from the flutter repo.
# This file is a copy of analysis_options.yaml from flutter/packages repo
# as of 2024-03-07.

analyzer:
language:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void main() {

testWidgets('Create remote port', (WidgetTester tester) async {
final LocalPort localPort = await LocalPort.create(kTestPort);
localPort.register((dynamic message, [RemotePort? remotePort]) => () {});
localPort.register((dynamic message, [RemotePort? remotePort]) {});

final RemotePort remotePort =
await RemotePort.connect(kTestAppId, kTestPort);
Expand All @@ -40,7 +40,7 @@ void main() {
(WidgetTester tester) async {
final LocalPort localPort =
await LocalPort.create(kTestPort, trusted: false);
localPort.register((dynamic message, [RemotePort? remotePort]) => () {});
localPort.register((dynamic message, [RemotePort? remotePort]) {});

await expectLater(
() => RemotePort.connect(kTestAppId, kTestPort),
Expand All @@ -52,7 +52,7 @@ void main() {

testWidgets('Check for remote', (WidgetTester tester) async {
final LocalPort localPort = await LocalPort.create(kTestPort);
localPort.register((dynamic message, [RemotePort? remotePort]) => () {});
localPort.register((dynamic message, [RemotePort? remotePort]) {});

final RemotePort remotePort =
await RemotePort.connect(kTestAppId, kTestPort);
Expand Down

0 comments on commit b59cb44

Please sign in to comment.