Archived
2
0

lint fix.

This commit is contained in:
Miroslav Šedivý
2021-10-05 23:10:10 +02:00
parent 1ff743c598
commit 9c014336ff
16 changed files with 76 additions and 46 deletions

View File

@ -129,12 +129,12 @@ func WriteClipboard(data string) {
func ResetKeys() {
for code := range debounce_button {
ButtonUp(code)
_ = ButtonUp(code)
delete(debounce_button, code)
}
for code := range debounce_key {
KeyUp(code)
_ = KeyUp(code)
delete(debounce_key, code)
}
@ -146,7 +146,7 @@ func CheckKeys(duration time.Duration) {
if t.Sub(start) < duration {
continue
}
ButtonUp(code)
_ = ButtonUp(code)
delete(debounce_button, code)
}
@ -154,7 +154,7 @@ func CheckKeys(duration time.Duration) {
if t.Sub(start) < duration {
continue
}
KeyUp(code)
_ = KeyUp(code)
delete(debounce_key, code)
}