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) { if _, err := os.Stat(logs); os.IsNotExist(err) {
//nolint
os.Mkdir(logs, os.ModePerm) os.Mkdir(logs, os.ModePerm)
} }

View File

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

View File

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