add nolint.

This commit is contained in:
Miroslav Šedivý 2020-10-28 22:21:31 +01:00
parent f5fcf724f4
commit 7ec3d5ac6d
3 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,7 @@ func init() {
}
if _, err := os.Stat(logs); os.IsNotExist(err) {
//nolint
os.Mkdir(logs, os.ModePerm)
}

View File

@ -41,6 +41,7 @@ func errResponse(input interface{}) *ErrResponse {
var res *ErrResponse
var err interface{}
//nolint
switch input.(type) {
case *HandlerError:
e := input.(*HandlerError)

View File

@ -130,11 +130,13 @@ func WriteClipboard(data string) {
func ResetKeys() {
for code := range debounce_button {
//nolint
ButtonUp(code)
delete(debounce_button, code)
}
for code := range debounce_key {
//nolint
KeyUp(code)
delete(debounce_key, code)
@ -147,6 +149,7 @@ func CheckKeys(duration time.Duration) {
if t.Sub(start) < duration {
continue
}
//nolint
ButtonUp(code)
delete(debounce_button, code)
@ -155,6 +158,7 @@ func CheckKeys(duration time.Duration) {
if t.Sub(start) < duration {
continue
}
//nolint
KeyUp(code)
delete(debounce_key, code)