aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2021-02-26 22:10:26 +0100
committerReto Brunner <reto@labrat.space>2021-02-26 22:14:58 +0100
commit8b4f2d148c8519326f306fd14ba872d7cb3101c6 (patch)
tree278576aa1e034c5cb2c5df9a1579661c3edacfee /lib
parentfda424bebc6dedbbcbffe4d330accc70d081b478 (diff)
downloadaerc-8b4f2d148c8519326f306fd14ba872d7cb3101c6.tar.gz
Fix linter warnings
* Remove redundant return (code was never reached) * Remove redundant type information * Rename unused function parameters to "_"
Diffstat (limited to 'lib')
-rw-r--r--lib/msgstore.go2
1 files changed, 1 insertions, 1 deletions
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()