From 558260ec9487225e4ea264cc54f8cd32225ab8c5 Mon Sep 17 00:00:00 2001 From: CedricM-1848552 <71820980+CedricM-1848552@users.noreply.github.com> Date: Mon, 15 Nov 2021 19:59:20 +0100 Subject: [PATCH] Update angel3_hot.dart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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()!; ``` --- packages/hot/lib/angel3_hot.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hot/lib/angel3_hot.dart b/packages/hot/lib/angel3_hot.dart index 6d2d4a94..424c8980 100644 --- a/packages/hot/lib/angel3_hot.dart +++ b/packages/hot/lib/angel3_hot.dart @@ -359,7 +359,7 @@ class HotReloader { scheduleMicrotask(() async { // Disconnect active WebSockets try { - var ws = _server!.app.container!.make()!; + var ws = _server!.app.container!.make(); for (var client in ws.clients) { try {