From 3cfe0200830f375b1267a144fb598cee3184ced6 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 22 Jan 2024 02:13:45 +0100 Subject: [PATCH] Fix missing return value. --- icedreammusic/np/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/icedreammusic/np/main.go b/icedreammusic/np/main.go index e7da17b..4c62eac 100644 --- a/icedreammusic/np/main.go +++ b/icedreammusic/np/main.go @@ -81,10 +81,7 @@ func SetPriorityWindows(pid int, priority uint32) error { } defer windows.CloseHandle(handle) // Technically this can fail, but we ignore it if it does - err = windows.SetPriorityClass(handle, priority) - if err != nil { - return err - } + return windows.SetPriorityClass(handle, priority) } func main() {