From 8b4f2d148c8519326f306fd14ba872d7cb3101c6 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Fri, 26 Feb 2021 22:10:26 +0100 Subject: Fix linter warnings * Remove redundant return (code was never reached) * Remove redundant type information * Rename unused function parameters to "_" --- lib/msgstore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/msgstore.go b/lib/msgstore.go index b95b68f3..7af9fd22 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -594,7 +594,7 @@ func (store *MessageStore) Sort(criteria []*types.SortCriterion, cb func()) { store.Sorting = true store.worker.PostAction(&types.FetchDirectoryContents{ SortCriteria: criteria, - }, func(msg types.WorkerMessage) { + }, func(_ types.WorkerMessage) { store.Sorting = false if cb != nil { cb() -- cgit