Skip to content

Commit

Permalink
fix child for EfficientChild
Browse files Browse the repository at this point in the history
  • Loading branch information
rbellens committed Oct 3, 2020
1 parent 688f277 commit ae202ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/stream.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension SnapshotStreamX on Stream<Snapshot> {
/// listened to.
Stream<Snapshot> child(String path) {
if (this is EfficientChild) {
return (this as EfficientChild).child(path)?.distinct();
return (this as EfficientChild).child(path);
}

return map((s) => s.child(path)).distinct();
Expand Down

0 comments on commit ae202ef

Please sign in to comment.