fix: handle error returns and unsafe type assertions in errcheck linter

This commit is contained in:
Moroka8 committed 2026-04-08 18:53:25 +07:00
1 parent 9f5a2549e2
commit 79d46b2e65
4 files changed
+161 -70

No files matched your search

-1
View File
@@ -20,7 +20,6 @@ import (
"github.com/xtaci/smux"
)
const idleTimeout = 2 * time.Minute
func main() {
listen := flag.String("listen", "0.0.0.0:56000", "listen on ip:port")