Skip to content

Commit dd455c3

Browse files
committed
Updated dart analyzer and fixed new for new lint rules.
1 parent 50db2b5 commit dd455c3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/web_bluetooth_logger.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Logger get webBluetoothLogger {
3535
///
3636
void setWebBluetoothLogger(final Logger logger) {
3737
_webLogger = logger;
38-
Future.sync(() async => await _subscription?.cancel());
38+
unawaited(_subscription?.cancel());
3939
_subscription = null;
4040
}
4141

@@ -46,7 +46,7 @@ void setWebBluetoothLogger(final Logger logger) {
4646
///
4747
void initWebBluetoothLogger() {
4848
final logger = Logger("flutter_web_bluetooth");
49-
Future.sync(() async => await _subscription?.cancel());
49+
unawaited(_subscription?.cancel());
5050
_subscription = logger.onRecord.listen((final event) {
5151
// ignore: avoid_print
5252
print("${event.loggerName}: ${event.time}: ${event.message}");

pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ packages:
157157
dependency: "direct dev"
158158
description:
159159
name: lints
160-
sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7
160+
sha256: a5e2b223cb7c9c8efdc663ef484fdd95bb243bff242ef5b13e26883547fce9a0
161161
url: "https://pub.dev"
162162
source: hosted
163-
version: "5.1.1"
163+
version: "6.0.0"
164164
logging:
165165
dependency: "direct main"
166166
description:
@@ -418,4 +418,4 @@ packages:
418418
source: hosted
419419
version: "3.1.3"
420420
sdks:
421-
dart: ">=3.7.0-0 <4.0.0"
421+
dart: ">=3.8.0-0 <4.0.0"

0 commit comments

Comments
 (0)