Fix Staticcheck errors & minor logic simplification (#967)

Simplify logic in ui.go. In that diff, `st` would already have the
Reversed flag set; there's no need to set it again.

Also, minor changes to remove all the statickcheck errors VS code's
Go extension complains about.
This commit is contained in:
Ilya Grigoriev authored and GitHub committed 2022-10-16 18:50:41 +03:00
1 parent e570d5f65b
commit f1312ca969
3 files changed
+17 -21

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ func listen(l net.Listener) {
func echoerr(c net.Conn, msg string) {
fmt.Fprintln(c, msg)
log.Printf(msg)
log.Print(msg)
}
func echoerrf(c net.Conn, format string, a ...interface{}) {