Fix linter warnings

* Remove redundant return (code was never reached)
* Remove redundant type information
* Rename unused function parameters to "_"
This commit is contained in:
Reto Brunner 2021-02-26 22:10:26 +01:00
parent fda424bebc
commit 8b4f2d148c
4 changed files with 8 additions and 9 deletions

View file

@ -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()