Skip to content

Commit 539ed40

Browse files
authored
Add missing return to fix analysis (#62)
* Add missing return to fix analysis * address comment * Update async_queue.dart
1 parent 4539161 commit 539ed40

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.9.7+11
2+
3+
* Fix an analysis hint.
4+
15
# 0.9.7+10
26

37
* Set max SDK version to `<3.0.0`, and adjust other dependencies.

lib/src/async_queue.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,13 @@ class AsyncQueue<T> {
5959
/// the process was cancelled.
6060
Future _processNextItem() {
6161
var item = _items.removeFirst();
62-
return _processor(item).then((_) {
63-
if (_items.isNotEmpty) return _processNextItem();
62+
return _processor(item).then((_) async {
63+
if (_items.isNotEmpty) return await _processNextItem();
6464

6565
// We have drained the queue, stop processing and wait until something
6666
// has been enqueued.
6767
_isProcessing = false;
68+
return null;
6869
});
6970
}
7071
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: watcher
2-
version: 0.9.7+10
2+
version: 0.9.7+11
33

44
description: >
55
A file system watcher. It monitors changes to contents of directories and

0 commit comments

Comments
 (0)