From 6838c23478944a9b45df1fa9a0f432ec77423987 Mon Sep 17 00:00:00 2001 From: Wagner Riffel Date: Tue, 3 Sep 2019 16:34:03 -0300 Subject: all: purge redundant underscores Signed-off-by: Wagner Riffel --- widgets/aerc.go | 2 +- widgets/exline.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'widgets') diff --git a/widgets/aerc.go b/widgets/aerc.go index 345f3ea..87009cd 100644 --- a/widgets/aerc.go +++ b/widgets/aerc.go @@ -301,7 +301,7 @@ func (aerc *Aerc) SelectTab(name string) bool { } func (aerc *Aerc) SelectTabIndex(index int) bool { - for i, _ := range aerc.tabs.Tabs { + for i := range aerc.tabs.Tabs { if i == index { aerc.tabs.Select(i) return true diff --git a/widgets/exline.go b/widgets/exline.go index 8ec69d6..1482f0e 100644 --- a/widgets/exline.go +++ b/widgets/exline.go @@ -92,7 +92,7 @@ type nullHistory struct { input *ui.TextInput } -func (_ *nullHistory) Add(string) {} +func (*nullHistory) Add(string) {} func (h *nullHistory) Next() string { return h.input.String() @@ -102,4 +102,4 @@ func (h *nullHistory) Prev() string { return h.input.String() } -func (_ *nullHistory) Reset() {} +func (*nullHistory) Reset() {} -- cgit 1.4.1-2-gfad0