Fix code analysis issues: remove unused imports, debug prints, fix deprecated methods and naming conventions

This commit is contained in:
Ваше Имя
2026-04-04 22:15:55 +07:00
parent ac39a374c3
commit 095155fcf9
10 changed files with 42 additions and 66 deletions
+2 -4
View File
@@ -137,9 +137,7 @@ Future<Packet> unpackPacket(Uint8List packet) async {
_maxDecompressedSize,
);
} catch (e) {
// В изоляте нельзя использовать логгер, который пишет в терминал через зависимости Flutter,
// но простой print или throw сработает
print("LZ4 decompression error: $e");
throw Exception("LZ4 decompression error: $e");
}
}
}
@@ -148,7 +146,7 @@ Future<Packet> unpackPacket(Uint8List packet) async {
payload = msgpack.deserialize(payloadBytes);
} catch (e) {
if (payloadBytes.isNotEmpty) {
print("MsgPack deserialization error: $e");
throw Exception("MsgPack deserialization error: $e");
}
}
}