From feacca3c5caffb11be1f5f7cbfef01400b5bc944 Mon Sep 17 00:00:00 2001 From: Wagner Riffel Date: Tue, 3 Sep 2019 16:34:04 -0300 Subject: all: use fmt.Errorf for fomartting errors Signed-off-by: Wagner Riffel --- commands/next-tab.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'commands/next-tab.go') diff --git a/commands/next-tab.go b/commands/next-tab.go index 5af8692..fc668f1 100644 --- a/commands/next-tab.go +++ b/commands/next-tab.go @@ -1,7 +1,6 @@ package commands import ( - "errors" "fmt" "strconv" @@ -47,5 +46,5 @@ func (NextPrevTab) Execute(aerc *widgets.Aerc, args []string) error { } func nextPrevTabUsage(cmd string) error { - return errors.New(fmt.Sprintf("Usage: %s [n]", cmd)) + return fmt.Errorf("Usage: %s [n]", cmd) } -- cgit v1.2.3