From 9f1fcd7c93b42d0565e5f078c7d0ed72fde0d1dc Mon Sep 17 00:00:00 2001 From: Divyanshu Bhargava Date: Mon, 26 Feb 2024 19:16:17 +0400 Subject: [PATCH] minor code changes --- .../mirai_network_request/mirai_network_request_parser.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mirai/lib/src/action_parsers/mirai_network_request/mirai_network_request_parser.dart b/packages/mirai/lib/src/action_parsers/mirai_network_request/mirai_network_request_parser.dart index b7c69bb2..258bfad9 100644 --- a/packages/mirai/lib/src/action_parsers/mirai_network_request/mirai_network_request_parser.dart +++ b/packages/mirai/lib/src/action_parsers/mirai_network_request/mirai_network_request_parser.dart @@ -32,7 +32,7 @@ class MiraiNetworkRequestParser extends MiraiActionParser { if (response?.statusCode != null) { final result = model.results.firstWhere( - (element) => response?.statusCode == element.statusCode, + (element) => element.statusCode == response?.statusCode, ); if (context.mounted) {