From 1166188ac94d51a7bf53e8d34fb0607e9ced18d6 Mon Sep 17 00:00:00 2001 From: dongwlin Date: Sat, 25 Nov 2023 21:41:38 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6?= =?UTF-8?q?=E8=A6=86=E7=9B=96=E5=B7=B2=E5=AD=98=E5=9C=A8=E7=9A=84adb=20con?= =?UTF-8?q?fig=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/cli/device.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/cli/device.cpp b/source/cli/device.cpp index bd24439..acdbcad 100644 --- a/source/cli/device.cpp +++ b/source/cli/device.cpp @@ -48,9 +48,7 @@ bool select_device(std::string& name, std::string& SN, std::string& adb) SN = MaaToolKitGetDeviceAdbSerial(device_index); adb = MaaToolKitGetDeviceAdbPath(device_index); AdbConfigCache adb_config_cache; - if (!adb_config_cache.has(name, SN)) { - adb_config_cache.set_adb_config(name, SN, MaaToolKitGetDeviceAdbConfig(device_index)); - } + adb_config_cache.set_adb_config(name, SN, MaaToolKitGetDeviceAdbConfig(device_index)); return true; }