Skip to content

Commit 99ac1ad

Browse files
committed
1.0.17 - Cody tidy
1 parent 6f9e2fc commit 99ac1ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/src/network/parse_live_query.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@ class LiveQuery {
9898
if (_debug) {
9999
print('$_printConstLiveQuery: Done');
100100
}
101-
}, onError: (error, StackTrace stackTrace) {
101+
}, onError: (Error error, StackTrace stackTrace) {
102102
if (_debug) {
103103
print(
104104
'$_printConstLiveQuery: Error: ${error.runtimeType.toString()}');
105105
}
106106
return Future.value(
107-
handleException(error, ParseApiRQ.liveQuery, _debug, _className));
107+
handleException(Exception(error), ParseApiRQ.liveQuery, _debug, _className));
108108
});
109109

110110
//The connect message is sent from a client to the LiveQuery server.
111111
//It should be the first message sent from a client after the WebSocket connection is established.
112-
_connectMessage = {
112+
_connectMessage = <String, String>{
113113
'op': 'connect',
114114
'applicationId': _client.data.applicationId,
115115
'clientKey': _client.data.clientKey ?? ''
@@ -125,7 +125,7 @@ class LiveQuery {
125125

126126
//After a client connects to the LiveQuery server,
127127
//it can send a subscribe message to subscribe a ParseQuery.
128-
_subscribeMessage = {
128+
_subscribeMessage = <String, dynamic>{
129129
'op': 'subscribe',
130130
'requestId': requestId,
131131
'query': {
@@ -144,7 +144,7 @@ class LiveQuery {
144144
_channel.sink.add(jsonEncode(_subscribeMessage));
145145

146146
//Mount message for Unsubscribe
147-
_unsubscribeMessage = {
147+
_unsubscribeMessage = <String, dynamic>{
148148
'op': 'unsubscribe',
149149
'requestId': requestId,
150150
};

0 commit comments

Comments
 (0)