From 5a460a9e408ecc664658f5f2fa3a186b28710fe5 Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Wed, 4 May 2022 10:11:40 +0200 Subject: [PATCH] fixed warning in screen.go --- screen.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/screen.go b/screen.go index df6b387..20847fd 100644 --- a/screen.go +++ b/screen.go @@ -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)) } } }