mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add nolint.
This commit is contained in:
parent
f5fcf724f4
commit
7ec3d5ac6d
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user