mirror of
https://github.com/wownero/cyberwow.git
synced 2026-10-26 10:48:44 +01:00
remove useless type cast
This commit is contained in:
@@ -119,7 +119,7 @@ Future<List<dynamic>> getConnectionsSimple() async {
|
||||
const minActiveTime = 8;
|
||||
final _activeConnections = _connections.where((x) => x['live_time'] > minActiveTime);
|
||||
|
||||
final _sortedConn = _activeConnections.cast<Map<String, dynamic>>().toList()..sort
|
||||
final _sortedConn = _activeConnections.toList()..sort
|
||||
(
|
||||
(x, y) {
|
||||
final int a = x['live_time'];
|
||||
|
||||
@@ -82,7 +82,7 @@ Future<List<dynamic>> getTransactionPoolSimple() async {
|
||||
return [];
|
||||
}
|
||||
else {
|
||||
final _sortedPool = result.cast<Map<String, dynamic>>()..sort
|
||||
final _sortedPool = result..sort
|
||||
(
|
||||
(x, y) {
|
||||
final int a = x['receive_time'];
|
||||
|
||||
Reference in New Issue
Block a user