build: fix linting issues reported by golangci-lint on windows

This commit is contained in:
albertony
2024-04-17 16:40:07 +02:00
parent fdc56b21c1
commit 159e274921
9 changed files with 21 additions and 60 deletions

View File

@@ -13,7 +13,7 @@ func HideConsole() {
if getConsoleWindow.Find() == nil && showWindow.Find() == nil {
hwnd, _, _ := getConsoleWindow.Call()
if hwnd != 0 {
showWindow.Call(hwnd, 0)
_, _, _ = showWindow.Call(hwnd, 0)
}
}
}