Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
up9cloud committed Dec 16, 2021
1 parent dd817f6 commit 05c71c5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ A flutter plugin for [TDLib JSON interface](https://github.com/tdlib/td#using-fr

## Lib versions

| package | td |
| ------- | ----------------------------- |
| 0.1.3 | 1.7.9 |
| 0.1.2 | 1.7.0 (Android), latest (iOS) |
| package | td |
| ------- | ------------------------------------ |
| 0.1.3 | 1.7.9 (Android, iOS, macOS) |
| 0.1.2 | 1.7.0 (Android), latest (iOS, macOS) |

## Supported architectures

Expand Down
4 changes: 2 additions & 2 deletions example/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ void main() {
// Verify that platform version is retrieved.
expect(
find.byWidgetPredicate(
(Widget widget) => widget is Text &&
widget.data!.startsWith('Running on:'),
(Widget widget) =>
widget is Text && widget.data!.startsWith('Running on:'),
),
findsOneWidget,
);
Expand Down
3 changes: 2 additions & 1 deletion lib/service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ class Service {

Future _handleObject(Map<String, dynamic> obj) async {
if (obj['@type'] == "updates") {
await Future.wait((obj['updates'] ?? []).map((update) => _handleEvent(update)));
await Future.wait(
(obj['updates'] ?? []).map((update) => _handleEvent(update)));
} else {
await _handleEvent(obj);
}
Expand Down
6 changes: 2 additions & 4 deletions test/libtdjson_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import 'package:libtdjson/libtdjson.dart';
void main() {
TestWidgetsFlutterBinding.ensureInitialized();

setUp(() {
});
setUp(() {});

tearDown(() {
});
tearDown(() {});
}

0 comments on commit 05c71c5

Please sign in to comment.