fixed warning in screen.go

This commit is contained in:
Timon Ringwald 2022-05-04 10:11:40 +02:00
parent 727d8b28b7
commit 5a460a9e40

View File

@ -1,7 +1,6 @@
package tui
import (
"errors"
"fmt"
"git.tordarus.net/Tordarus/adverr"
@ -107,7 +106,7 @@ func (s *Screen) eventloop() {
case *tcell.EventMouse:
s.onMouseClicked(convertMouseEvent(event))
default:
s.StopWithError(errors.New(fmt.Sprintf("%#v", event)))
s.StopWithError(fmt.Errorf("%#v", event))
}
}
}