From 756c60536501fb9f706cbdec888fcfc60673e5c7 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Fri, 14 Jun 2024 15:57:28 +0500 Subject: [PATCH] Remove useless fmt.Sprintf --- adb/device.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adb/device.go b/adb/device.go index 3b0f8b7..488b5fd 100644 --- a/adb/device.go +++ b/adb/device.go @@ -169,7 +169,7 @@ KillForwardAll, from the official adb command's docs: Source: https://android.googlesource.com/platform/packages/modules/adb/+/refs/heads/main/SERVICES.TXT */ func (c *Device) KillForwardAll() error { - req := fmt.Sprintf("killforward-all") + req := "killforward-all" _, err := c.getAttribute(req) return wrapClientError(err, c, "KillForward") } @@ -182,7 +182,7 @@ KillForwardAll, from the official adb command's docs: Source: https://android.googlesource.com/platform/packages/modules/adb/+/refs/heads/main/SERVICES.TXT */ func (c *Device) ListForward() ([]Forward, error) { - req := fmt.Sprintf("list-forward") + req := "list-forward" resp, err := c.getAttribute(req) if err != nil { return nil, wrapClientError(err, c, "ListForwards")