Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Aug 20, 2021
1 parent 60fcb11 commit dbf96a4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
24 changes: 13 additions & 11 deletions systray/systray_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ var (
s32 = windows.NewLazySystemDLL("Shell32.dll")
pShellNotifyIcon = s32.NewProc("Shell_NotifyIconW")

u32 = windows.NewLazySystemDLL("User32.dll")
pCreateMenu = u32.NewProc("CreateMenu")
pCreatePopupMenu = u32.NewProc("CreatePopupMenu")
pCreateWindowEx = u32.NewProc("CreateWindowExW")
pDefWindowProc = u32.NewProc("DefWindowProcW")
pDeleteMenu = u32.NewProc("DeleteMenu")
pDestroyWindow = u32.NewProc("DestroyWindow")
pDispatchMessage = u32.NewProc("DispatchMessageW")
pDrawIconEx = u32.NewProc("DrawIconEx")
pGetCursorPos = u32.NewProc("GetCursorPos")
pGetDC = u32.NewProc("GetDC")
u32 = windows.NewLazySystemDLL("User32.dll")
pCreateMenu = u32.NewProc("CreateMenu")
pCreatePopupMenu = u32.NewProc("CreatePopupMenu")
pCreateWindowEx = u32.NewProc("CreateWindowExW")
pDefWindowProc = u32.NewProc("DefWindowProcW")
pDeleteMenu = u32.NewProc("DeleteMenu")
pDestroyWindow = u32.NewProc("DestroyWindow")
pDispatchMessage = u32.NewProc("DispatchMessageW")
pDrawIconEx = u32.NewProc("DrawIconEx")
pGetCursorPos = u32.NewProc("GetCursorPos")
pGetDC = u32.NewProc("GetDC")
//lint:ignore U1000 keep pGetMenuItemID
pGetMenuItemID = u32.NewProc("GetMenuItemID")
pGetMessage = u32.NewProc("GetMessageW")
pGetSystemMetrics = u32.NewProc("GetSystemMetrics")
Expand Down Expand Up @@ -716,6 +717,7 @@ func (t *winTray) delFromVisibleItems(parent, val uint32) {
break
}
}
t.visibleItems[parent] = visibleItems
}

func (t *winTray) addToVisibleItems(parent, val uint32) {
Expand Down
4 changes: 2 additions & 2 deletions tools/tools.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// go:build tools
//go:build tools
// +build tools

package tools

import (
// To keep go mod happy
_ "honnef.co/go/tools/cmd/staticcheck"
)

0 comments on commit dbf96a4

Please sign in to comment.