Update angel3_hot.dart
Removed excess '!' operation which caused the following error message, ``` Warning: Operand of null-aware operation '!' has type 'AngelWebSocket' which excludes null. ../…/lib/angel3_hot.dart:362 - 'AngelWebSocket' is from 'package:angel3_websocket/server.dart' ('../../../../../.pub-cache/hosted/pub.dartlang.org/angel3_websocket-4.1.2/lib/server.dart'). package:angel3_websocket/server.dart:1 var ws = _server!.app.container!.make<AngelWebSocket>()!; ```
This commit is contained in:
parent
d0fc25c4e1
commit
558260ec94
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ class HotReloader {
|
||||||
scheduleMicrotask(() async {
|
scheduleMicrotask(() async {
|
||||||
// Disconnect active WebSockets
|
// Disconnect active WebSockets
|
||||||
try {
|
try {
|
||||||
var ws = _server!.app.container!.make<AngelWebSocket>()!;
|
var ws = _server!.app.container!.make<AngelWebSocket>();
|
||||||
|
|
||||||
for (var client in ws.clients) {
|
for (var client in ws.clients) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue