From 11394d246fc1f6e7244ecd0e1f3c07eb730a6353 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 28 Jan 2024 14:25:17 +0900 Subject: [PATCH] internal/ui: bug fix: check the error of TimeBeginPeriod --- internal/ui/ui_windows.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/ui/ui_windows.go b/internal/ui/ui_windows.go index d6d2040c7..e5d3c7a14 100644 --- a/internal/ui/ui_windows.go +++ b/internal/ui/ui_windows.go @@ -249,6 +249,7 @@ func init() { return } // Use a better timer resolution (golang/go#44343). + // An error is ignored. The application is still valid even if a higher resolution timer is not available. // TODO: This might not be necessary from Go 1.23. - windows.TimeBeginPeriod(1) + _ = windows.TimeBeginPeriod(1) }