From a048161a76a3fc3e4f027b5f44300b280916cd19 Mon Sep 17 00:00:00 2001 From: Sourcegraph Date: Fri, 22 Oct 2021 02:27:22 +0000 Subject: [PATCH] Replacing fmt.Sprintf with strconv.Iota --- linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux.go b/linux.go index d39d786..e34a08e 100644 --- a/linux.go +++ b/linux.go @@ -113,7 +113,7 @@ func (t *LinuxTracker) Snap() (*Snapshot, error) { var visible []int64 { for _, window := range windows { - out_, err := exec.Command("xwininfo", "-id", fmt.Sprintf("%d", window.ID), "-stats").Output() + out_, err := exec.Command("xwininfo", "-id", strconv.Itoa(window.ID), "-stats").Output() if err != nil { return nil, fmt.Errorf("xwininfo failed with error: %s", err) }