Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
Add an Iterable as single buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Curvel authored Mar 18, 2020
1 parent 81951e8 commit c5b87ce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/src/socket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ class Socket extends EventEmitter {
super.emit(event, data);
} else {
var sendData = <dynamic>[event];
if (data is Iterable) {
sendData.addAll(data);
} else if (data != null) {
if (data != null) {
sendData.add(data);
}

Expand Down

0 comments on commit c5b87ce

Please sign in to comment.