From 29566e90495c0267238c97d47cbb7b1f74c7048b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E6=B3=93=E9=93=AE?= Date: Fri, 16 Aug 2024 10:50:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hrp/pkg/uixt/android_device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrp/pkg/uixt/android_device.go b/hrp/pkg/uixt/android_device.go index e6234d22..98582c81 100644 --- a/hrp/pkg/uixt/android_device.go +++ b/hrp/pkg/uixt/android_device.go @@ -334,11 +334,11 @@ func (dev *AndroidDevice) Uninstall(packageName string) error { func (dev *AndroidDevice) Install(appPath string, opts *InstallOptions) error { app, err := os.Open(appPath) - defer app.Close() if err != nil { return errors.Wrap(err, fmt.Sprintf("install %s open file failed", appPath)) } + defer app.Close() brand, err := dev.d.Brand() if err != nil { return err