We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4b2066 commit 4eee945Copy full SHA for 4eee945
app/lib/models/communicator.dart
@@ -112,8 +112,8 @@ class SocketNotifier extends StateNotifier<Socket?> {
112
return;
113
}
114
115
- var socketPort = (port == null || port == 0) ? (secure ? 443 : 80) : port;
116
- var scheme = secure ? "wss" : "ws";
+ final int socketPort = (port == null || port == 0) ? (secure ? 443 : 80) : port!;
+ final scheme = secure ? 'wss' : 'ws';
117
var url = "$scheme://$hostname:$socketPort";
118
if (token != null) url += "?token=$token";
119
0 commit comments